centralize logic so mockers stop mocking me

This commit is contained in:
Sam 2013-09-03 17:58:30 +10:00
parent 51eb764345
commit 1b9079ed20
1 changed files with 1 additions and 3 deletions

View File

@ -240,9 +240,7 @@ module SiteSettingExtension
end
define_singleton_method :#{clean_name}? do
c = @@containers[provider.current_site]
c = c[name] if c
c
#{clean_name}
end
define_singleton_method :#{clean_name}= do |val|