More succinct Web#markup method, now with documentation
This commit is contained in:
parent
b96810fd2e
commit
6a4af8a59a
|
@ -77,8 +77,9 @@ class Web < ActiveRecord::Base
|
||||||
file.description if file
|
file.description if file
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# @return [Symbol] the type of markup used by this Web
|
||||||
def markup
|
def markup
|
||||||
read_attribute('markup').to_sym
|
self[:markup].to_sym
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_names_by_author
|
def page_names_by_author
|
||||||
|
|
Loading…
Reference in a new issue