diff --git a/app/models/web.rb b/app/models/web.rb index 020afc3c..d62c7cc9 100644 --- a/app/models/web.rb +++ b/app/models/web.rb @@ -77,8 +77,9 @@ class Web < ActiveRecord::Base file.description if file end + # @return [Symbol] the type of markup used by this Web def markup - read_attribute('markup').to_sym + self[:markup].to_sym end def page_names_by_author