Class: Merit::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/merit.rb

Instance Method Summary collapse

Instance Method Details

#action_controller_hookObject


83
84
85
86
87
88
89
# File 'lib/merit.rb', line 83

def action_controller_hook
  if Rails.application.config.api_only
    :action_controller_api
  else
    :action_controller_base
  end
end

#extend_orm_with_has_meritObject


79
80
81
# File 'lib/merit.rb', line 79

def extend_orm_with_has_merit
  ActiveRecord::Base.include(Merit)
end