Sha256: 7e20f0c58c496f1fd035bd00e716822e63d5134de9cef76dab66983701ce8e62
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require 'rails_views/controller_helpers' class RailsViews if defined?(Rails) if Rails::VERSION::MAJOR >= 5 class RailsViewsRailtie < Rails::Railtie initializer 'rails_views.register' do |_app| ActionController::Base.send :prepend, ControllerHelpers end end elsif Rails::VERSION::MAJOR == 4 class RailsViewsRailtie < Rails::Railtie initializer 'rails_views.register' do |_app| ActionController::Base.send :include, ControllerHelpers end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_views-0.1.0 | lib/rails_views/railtie.rb |