Sha256: b483c57c8bf5ddb387dfcb3b1c6f8051267fb26d4f7f8806fc4c10d857091665
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
satis-1.0.67 | lib/satis/engine.rb |
satis-1.0.66 | lib/satis/engine.rb |