Sha256: 14c2d35aad868c51552814b4d2382e961282f3e934bd6818198bcd4960e0f580
Contents?: true
Size: 1.85 KB
Versions: 1
Compression:
Stored size: 1.85 KB
Contents
require 'comable_core' require 'slim' require 'sass-rails' require 'coffee-rails' require 'compass-rails' require 'bootstrap-sass' require 'font-awesome-rails' require 'kaminari' require 'dynamic_form' require 'ransack' require 'jquery-rails' require 'jquery-ui-rails' require 'raphael-rails' require 'morrisjs-rails' require 'nprogress-rails' require 'gritter' require 'turbolinks' require 'jquery-turbolinks' require 'awesome_admin_layout' require 'ace-rails-ap' require 'bootstrap3-datetimepicker-rails' require 'momentjs-rails' module Comable module Backend class Engine < ::Rails::Engine # XXX: a code below to delegate comable:install:migrations to comable_core config.paths['db/migrate'] = [] config.generators do |g| g.template_engine :slim g.stylesheet_engine :sass g.javascript_engine :coffee g.test_framework :rspec, fixture: true g.fixture_replacement :factory_girl, dir: 'spec/factories' end initializer 'comable.ransack.configure' do Ransack.configure do |config| config.add_predicate( 'eq_any_splitted', arel_predicate: 'eq_any', formatter: proc { |v| v.split(' ') }, validator: proc { |v| v.present? }, compounds: false, type: :string ) config.add_predicate( 'cont_any_splitted', arel_predicate: 'matches_any', formatter: proc { |v| v.split(' ').map { |s| "%#{s}%" } }, validator: proc { |v| v.present? }, compounds: false, type: :string ) end end # Add support Rails 4.1.x, 4.2.x for gritter config.assets.precompile += %w( error.png gritter-close.png gritter.png ie-spacer.gif notice.png progress.gif success.png warning.png ) if Rails::VERSION::MAJOR == 4 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comable_backend-0.5.0 | lib/comable/backend/engine.rb |