1 Like
What particular issue is this causing?
If I use require 'site_setting_extension'
in my plugin, then I need to remember to add require 'distributed_cache'
before.
The trouble is that now you are initializing site settings earlier than when the app does.
Can you post the exact code of what you are trying to achieve.
2 Likes
I use SiteSettingExtension.module_eval
in my plugins to add custom site setting types, e.g.:
require 'distributed_cache'
require 'site_setting_extension'
SiteSettingExtension.module_eval do
alias_method :core__types, :types
def types
result = @types
if not result
result = core__types
result[:paypal_buttons] = result.length + 1;
end
return result
end
end