Sha256: c6c9d46746c75a5715a9d2485c0bfd44c4285c9a3a2c81c9dc85b4080f34f65d
Contents?: true
Size: 1.91 KB
Versions: 5
Compression:
Stored size: 1.91 KB
Contents
module Voluntary class Engine < ::Rails::Engine config.autoload_paths << File.expand_path("../../../app/serializers", __FILE__) 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_before 0, 'Rack::Cors' do allow do origins '*' resource '*', headers: :any, methods: [:get, :post, :options] end end 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