Module: HasHelpers::ApplicationHelper

Defined in:
app/lib/has_helpers/application_helper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
8
9
# File 'app/lib/has_helpers/application_helper.rb', line 5

def self.included(klass)
  klass.class_eval do
    extend self # Turn all instance methods into module methods
  end
end

Instance Method Details

#translate_klass(klass_name) ⇒ Object



17
18
19
# File 'app/lib/has_helpers/application_helper.rb', line 17

def translate_klass(klass_name)
  translate_klass_name(klass_name).safe_constantize
end

#translate_klass_name(klass_name) ⇒ Object



13
14
15
# File 'app/lib/has_helpers/application_helper.rb', line 13

def translate_klass_name(klass_name)
  klass_name
end