Class: Loaf::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/loaf/railtie.rb,
lib/loaf/railtie.rb

Class Method Summary collapse

Class Method Details

.insert_controllerObject


23
24
25
# File 'lib/loaf/railtie.rb', line 23

def insert_controller
  ActionController::Base.send :include, Loaf::ControllerExtensions
end

.insert_viewObject


20
21
22
# File 'lib/loaf/railtie.rb', line 20

def insert_view
  ActionController::Base.helper Loaf::ViewExtensions
end