Class: Binda::Component
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Binda::Component
- Extended by:
- FriendlyId
- Includes:
- AASM, FieldableAssociations
- Defined in:
- app/models/binda/component.rb
Class Method Summary collapse
-
.sort_limit ⇒ Object
The limit above which componets cannot be sorted anymore.
Instance Method Summary collapse
-
#should_generate_new_friendly_id? ⇒ Boolean
Friendly id preference on slug generation.
Methods included from FieldableAssociations
#find_or_create_a_field_by, #generate_fields
Class Method Details
.sort_limit ⇒ Object
The limit above which componets cannot be sorted anymore
50 51 52 |
# File 'app/models/binda/component.rb', line 50 def self.sort_limit 1000 end |
Instance Method Details
#should_generate_new_friendly_id? ⇒ Boolean
Friendly id preference on slug generation
Method inherited from friendly id
45 46 47 |
# File 'app/models/binda/component.rb', line 45 def should_generate_new_friendly_id? slug.blank? end |