Sha256: c5e1a15234717211d72e23f44665054d97d95adeb3cbea21eb9861e1b9bf6eaa

Contents?: true

Size: 583 Bytes

Versions: 11

Compression:

Stored size: 583 Bytes

Contents

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

    initializer 'any_login.assets_precompile', :group => :all do |app|
      app.config.assets.precompile += ['vendor/modernizr.js', 'rails_db/up_arrow.gif', 'rails_db/down_arrow.gif']
      app.config.assets.precompile += ["codemirror*", "codemirror/**/*"]
    end

    initializer 'rails_db.helpers' do
      ActiveSupport.on_load :action_view do
        ActionView::Base.send :include, RailsDb::RailsDbDataTableHelper
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails_db-1.0 lib/rails_db/engine.rb
rails_db-0.9.9 lib/rails_db/engine.rb
rails_db-0.9 lib/rails_db/engine.rb
rails_db-0.8 lib/rails_db/engine.rb
rails_db-0.7.2 lib/rails_db/engine.rb
rails_db-0.7.1 lib/rails_db/engine.rb
rails_db-0.7 lib/rails_db/engine.rb
rails_db-0.6 lib/rails_db/engine.rb
rails_db-0.5.1 lib/rails_db/engine.rb
rails_db-0.5 lib/rails_db/engine.rb
rails_db-0.4 lib/rails_db/engine.rb