Sha256: d2fad9193eff1fe27fe2aa16cdbd3ef0b644e4013d438835468ab4b4a6ae8cff
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true module DateBook # Some documentation goes here class Engine < ::Rails::Engine isolate_namespace DateBook engine_name 'date_book' config.generators do |g| g.hidden_namespaces << 'test_unit' << 'erb' g.orm :active_record g.template_engine :haml g.test_framework :rspec, fixture: false g.integration_tool :rspec g.stylesheets false g.javascripts false g.view_specs false g.helper_specs false end initializer 'date_book.assets.precompile' do |app| app.config.assets.precompile += %w( date_book.js date_book.css bootstrap-wysiwyg/bootstrap-wysiwyg.css bootstrap-wysiwyg.js jquery_nested_form.js jquery_nested_form.js bootstrap-datetimepicker.js bootstrap-datetimepicker.css all-day-bg.png part-day-bg.png ) end initializer "date_book.add_middleware" do |app| app.config.middleware.insert_before 0, Rack::Cors do allow do origins %r{\Ahttp://localhost:3000\z} resource '*', :headers => :any, :methods => [:get, :post, :options] end end app.config.middleware.insert_before Warden::Manager, Rack::Cors end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
date_book-0.0.6 | lib/date_book/engine.rb |