Sha256: 513068b36dd0928fcbeb1b4b0f7306c6a3afcc01437cb932b12b8c426c149065
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
require 'transit/rails/routing' module Transit class Railtie < Rails::Railtie initializer 'transit.integration' do |app| app.config.responders.flash_keys = [ :success, :error ] app.config.assets.precompile << 'transit.css' app.config.assets.precompile << 'transit.js' app.config.action_view.default_form_builder = Transit::Builders::FormBuilder app.config.action_controller.responder = Transit::Controller::Responder app.config.responders.flash_keys = [ :success, :failure ] end ActiveSupport.on_load(:action_controller) do self.responder = Transit::Controller::Responder InheritedResources.flash_keys = [ :success, :error ] end initializer 'transit.action_view' do ActionView::Base.default_form_builder = Transit::Builders::FormBuilder ActionView::Base.field_error_proc = lambda{ |html_tag, instance_tag| html_tag } end ActiveSupport.on_load(:action_view) do include TransitHelper include Transit::FormHelper end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.2 | lib/transit/rails/railtie.rb |