Sha256: bc057c91641074b181515b02346a7a8e649827a87b82ca05993f7980ee84c310

Contents?: true

Size: 755 Bytes

Versions: 4

Compression:

Stored size: 755 Bytes

Contents

module RailsDb
  class Engine < ::Rails::Engine
    isolate_namespace RailsDb
    config.autoload_paths += Dir["#{config.root}/lib"]

    initializer 'rails_db.assets_precompile', :group => :all do |app|
      app.config.assets.precompile += [
        'rails_db/application.js', 
        'rails_db/application.css',
        'rails_db/logo.png',
        'rails_db/logo_mini.png',
        'rails_db/data_table_code.png',
        'rails_db/data_table.png',
        'rails_db/railsdb.png',
        'rails_db/runsql.png',
        'rails_db/*.png', 
        'codemirror/*', 
        'codemirror/**/*'
      ]
    end

    initializer 'rails_db.helpers' do
      ActiveSupport.on_load :action_view do
        include RailsDb::Helpers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_db-2.4.4 lib/rails_db/engine.rb
rails_db-2.4.3 lib/rails_db/engine.rb
rails_db-2.4.2 lib/rails_db/engine.rb
rails_db-2.4.1 lib/rails_db/engine.rb