* 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)
|
def self.[]=(name, value)
|
||||||
setting = get(name)
|
setting = get(name)
|
||||||
setting.value = value
|
setting.value = (value ? value.to_s : "")
|
||||||
setting.save
|
setting.save
|
||||||
setting.value
|
setting.value
|
||||||
end
|
end
|
||||||
|
@ -53,7 +53,7 @@ class Setting < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.#{name}=(value)
|
def self.#{name}=(value)
|
||||||
self[:#{name}] = values
|
self[:#{name}] = value
|
||||||
end
|
end
|
||||||
END_SRC
|
END_SRC
|
||||||
class_eval src, __FILE__, __LINE__
|
class_eval src, __FILE__, __LINE__
|
||||||
|
|
Loading…
Reference in New Issue