I want to create a globally accessible class in my Rails project that will contain some active record result sets also.
@settings = Settings.first
@locales = Locales.all
$websiteSettings = WebsiteSettings.new(@settings, @locales)
Where should I be creating this class, is an initializer the best place?
I want to be able to access this class inside my controllers and views.
I understand that if the data changes in the database I will have to restart my rails application or update these global instances.