Sha256: 0964732e6e75cb3d07cf6399e278fd74c9388d2c52a76d12299f34973db2c1ec
Contents?: true
Size: 1011 Bytes
Versions: 5
Compression:
Stored size: 1011 Bytes
Contents
require 'satis/forms/builder' require 'satis/helpers/container' require 'satis/menus/builder' module Satis class Engine < ::Rails::Engine isolate_namespace Satis config.autoload_paths << "#{root}/app/components" config.autoload_paths << "#{root}/lib" initializer 'satis.helper' do Rails.application.reloader.to_prepare do ActiveSupport.on_load :action_view do include Satis::ApplicationHelper # F*CK Rails, adding an extra surrounding div 'field_with_errors' breaking all the things. self.field_error_proc = ->(html_tag, _instance) { html_tag } end ActiveSupport.on_load(:action_controller) do include Satis::ActionControllerHelpers end end end initializer :append_migrations do |app| unless app.root.to_s.match? root.to_s config.paths['db/migrate'].expanded.each do |expanded_path| app.config.paths['db/migrate'] << expanded_path end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
satis-1.0.75 | lib/satis/engine.rb |
satis-1.0.74 | lib/satis/engine.rb |
satis-1.0.70 | lib/satis/engine.rb |
satis-1.0.69 | lib/satis/engine.rb |
satis-1.0.68 | lib/satis/engine.rb |