Class: Loaf::RailtieHelpers

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

Class Method Summary collapse

Class Method Details

.insert_controllerObject



16
17
18
# File 'lib/loaf/railtie.rb', line 16

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

.insert_viewObject



12
13
14
# File 'lib/loaf/railtie.rb', line 12

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