* 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:
parent
4c767d636a
commit
c1537b5291
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue