centralize logic so mockers stop mocking me
This commit is contained in:
parent
51eb764345
commit
1b9079ed20
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue