Sha256: 9eaef5ca1a6ec9c83851326c291a8ccd755731a61dd8cde439cbf77b0027262e
Contents?: true
Size: 1.85 KB
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comable-backend-0.7.0.beta1 | lib/comable/backend/engine.rb |
comable-backend-0.6.0 | lib/comable/backend/engine.rb |