remove an allocation

This commit is contained in:
Sam 2015-02-12 15:07:17 +11:00
parent 276fd702e8
commit 5f8e604abc
1 changed files with 3 additions and 3 deletions

View File

@ -392,7 +392,7 @@ module SiteSettingExtension
def setup_methods(name)
clean_name = name.to_s.sub("?", "")
clean_name = name.to_s.sub("?", "").to_sym
define_singleton_method clean_name do
c = @containers[provider.current_site]
@ -404,11 +404,11 @@ module SiteSettingExtension
end
end
define_singleton_method clean_name + "?" do
define_singleton_method "#{clean_name}?" do
self.send clean_name
end
define_singleton_method clean_name + "=" do |val|
define_singleton_method "#{clean_name}=" do |val|
add_override!(name, val)
end
end