Module: HashMan::Inclusion

Extended by:
ActiveSupport::Concern
Defined in:
lib/hashman/inclusion.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

extend methods for class



13
14
15
# File 'lib/hashman/inclusion.rb', line 13

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#hash_idObject



8
9
10
# File 'lib/hashman/inclusion.rb', line 8

def hash_id
  self.class.generate_hash_id(id)
end