Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fat_free_crm/gem_ext/action_controller/base.rb,
lib/fat_free_crm/exceptions.rb

Direct Known Subclasses

ApplicationController

Class Method Summary collapse

Class Method Details

.all_application_helpersObject

Remove helpers residing in subdirectories from the list of application helpers. Basically we don’t want helpers in app/helpers/admin/* to override the ones in app/helpers/*.




14
15
16
# File 'lib/fat_free_crm/gem_ext/action_controller/base.rb', line 14

def self.all_application_helpers
  super.delete_if { |helper| helper.include?(File::SEPARATOR) }
end