Module: CouchRest::Model::Slug

Extended by:
ActiveSupport::Concern
Defined in:
lib/couchrest/model/slug.rb,
lib/couchrest/model/slug/version.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
"0.0.3"

Instance Method Summary collapse

Instance Method Details

#to_paramObject



40
41
42
43
44
# File 'lib/couchrest/model/slug.rb', line 40

def to_param
  result = self.send :slug
  return super if result.blank?
  result
end