app/models/radiant/config.rb in radiant-0.6.3 vs app/models/radiant/config.rb in radiant-0.6.4
- old
+ new
@@ -21,11 +21,13 @@
# admin.title :: the title of the admin system
# admin.subtitle :: the subtitle of the admin system
# defaults.page.parts :: a comma separated list of default page parts
# defaults.page.status :: a string representation of the default page status
# dev.host :: the hostname where draft pages are viewable
- #
+ # local.timezone :: the timezone offset (using a String or integer
+ # from http://api.rubyonrails.org/classes/TimeZone.html)
+ # used to correct displayed times
class Config < ActiveRecord::Base
set_table_name "config"
class << self
def [](key)
@@ -46,10 +48,10 @@
value
end
def to_hash
Hash[ *find(:all).map { |pair| [pair.key, pair.value] }.flatten ]
- end
+ end
end
def value=(param)
write_attribute :value, param.to_s
end