Sha256: f0af745fc5c6fa523dc68f78610c0b0934ea78fb00b88c7bf005a9a86a6aba6a
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
module ActiveRecordViews class Railtie < ::Rails::Railtie initializer 'active_record_views' do |app| ActiveSupport.on_load :active_record do ActiveRecordViews.sql_load_path += Rails.application.config.paths['app/models'].to_a ActiveRecordViews.init! ActiveRecordViews::Extension.create_enabled = !Rails.env.production? end unless app.config.cache_classes app.reloader.before_class_unload do ActiveRecordViews.reload_stale_views! end app.executor.to_run do ActiveRecordViews.reload_stale_views! end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activerecord_views-0.1.8 | lib/active_record_views/railtie.rb |
activerecord_views-0.1.7 | lib/active_record_views/railtie.rb |
activerecord_views-0.1.6 | lib/active_record_views/railtie.rb |