Sha256: e0aec0bd3891fab9bc5b81d970664003224d33cb7e16fea83aa89d7baa57de23
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
require 'active_support/all' # TODO: want duration require 'ndr_ui/engine' require 'will_paginate' require 'will_paginate/array' require 'jquery-rails' module NdrError # Engine configuration goes here; hook in to the host app. class Engine < ::Rails::Engine isolate_namespace NdrError # Hook into host app's asset pipeline initializer 'ndr_error.assets.precompile' do |app| if app.config.respond_to?(:assets) app.config.assets.precompile += %w[ ndr_error/ndr_error.css ndr_error/ndr_error.js ndr_error/bootstrap/glyphicons-halflings-regular* ] end end # Extract context filtering from the host application initializer 'ndr_error.set_default_filtering' do |app| NdrError.filtered_parameters.concat app.config.filter_parameters end # Ensure helpers remain visible in development... # See: # # * http://stackoverflow.com/questions/{9809787,26645033,12191822} # * https://robots.thoughtbot.com/tips-for-writing-your-own-rails-engine # config.to_prepare do ApplicationController.helper(ApplicationHelper) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ndr_error-2.4.0 | lib/ndr_error/engine.rb |
ndr_error-2.3.2 | lib/ndr_error/engine.rb |
ndr_error-2.3.1 | lib/ndr_error/engine.rb |
ndr_error-2.3.0 | lib/ndr_error/engine.rb |