* fixed a variable name error in Setting

* setting values to_s


git-svn-id: http://redmine.rubyforge.org/svn/trunk@213 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-02-02 14:28:54 +00:00
parent 4c767d636a
commit c1537b5291
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Setting < ActiveRecord::Base
def self.[]=(name, value)
setting = get(name)
setting.value = value
setting.value = (value ? value.to_s : "")
setting.save
setting.value
end
@ -53,7 +53,7 @@ class Setting < ActiveRecord::Base
end
def self.#{name}=(value)
self[:#{name}] = values
self[:#{name}] = value
end
END_SRC
class_eval src, __FILE__, __LINE__