More succinct Web#markup method, now with documentation

This commit is contained in:
James Herdman 2009-08-29 14:58:07 -04:00
parent b96810fd2e
commit 6a4af8a59a

View file

@ -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