Sha256: 8b94f185a35c1207675c2fa45862e779c3b5a2d2a37dd42d1bcccdc9958c2f34
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
module Voluntary class Engine < ::Rails::Engine config.autoload_paths << File.expand_path("../../../app/models/concerns", __FILE__) config.autoload_paths << File.expand_path("../../../app/controllers/concerns", __FILE__) config.autoload_paths << File.expand_path("../..", __FILE__) config.i18n.load_path += Dir[File.expand_path("../../../config/locales/**/*.{rb,yml}", __FILE__)] config.generators do |g| g.orm :active_record end config.to_prepare do Voluntary::Navigation::Base.add_product('no-name', 'workflow.user.products.no_name.title') end initializer "voluntary.add_middleware" do |config| config.middleware.insert_after Rack::Runtime, Rack::MethodOverride config.middleware.insert_after ActiveRecord::QueryCache, ActionDispatch::Cookies config.middleware.insert_after ActionDispatch::Cookies, ActionDispatch::Session::CookieStore config.middleware.insert_after ActionDispatch::Session::CookieStore, ActionDispatch::Flash end initializer "voluntary.add_view_helpers" do |config| ActionView::Base.send :include, Voluntary::ApplicationHelper ActionView::Base.send :include, Voluntary::CollectionHelper ActionView::Base.send :include, Voluntary::CommentsHelper ActionView::Base.send :include, Voluntary::FormHelper ActionView::Base.send :include, Voluntary::LanguageHelper ActionView::Base.send :include, Voluntary::LayoutHelper ActionView::Base.send :include, Voluntary::ProductHelper ActionView::Base.send :include, Voluntary::ShowHelper ActionView::Base.send :include, Voluntary::WizardHelper end end end
Version data entries
5 entries across 5 versions & 1 rubygems