Module: Ooor::Naming

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/ooor/naming.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#to_paramObject



67
68
69
70
# File 'lib/ooor/naming.rb', line 67

def to_param
  field = self.class.param_field
  send(field) && send(field).to_s
end