Module: Motr::Mods::Scopeable

Extended by:
ActiveSupport::Concern
Defined in:
lib/motr/mods/scopeable.rb

Overview

Scopeable is simply a base mod for setting up model “scoping”. This allows for helpers, routes, and other things to operate on particular model “scopes” where mods may exist on multiple different models.

Instance Method Summary collapse

Instance Method Details

#motr_scope_idObject



20
21
22
# File 'lib/motr/mods/scopeable.rb', line 20

def motr_scope_id
  self.id
end

#motr_scope_nameObject



16
17
18
# File 'lib/motr/mods/scopeable.rb', line 16

def motr_scope_name
  self.class.name.underscore
end