Class: ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ApplicationRecord
- Defined in:
- app/models/application_record.rb
Overview
This model contain the methods shared for all models
Instance Method Summary collapse
-
#div ⇒ String
return an unique string identifier from class name and object id.
Instance Method Details
#div ⇒ String
return an unique string identifier from class name and object id
10 11 12 |
# File 'app/models/application_record.rb', line 10 def div [self.class.to_s, '_', id].join.downcase end |