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

- (Object) motr_scope_id



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

def motr_scope_id
  self.id
end

- (Object) motr_scope_name



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

def motr_scope_name
  self.class.name.underscore
end