Class: Binda::Component

Inherits:
ApplicationRecord show all
Extended by:
FriendlyId
Includes:
AASM, FieldableAssociations
Defined in:
app/models/binda/component.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from FieldableAssociations

#find_or_create_a_field_by, #generate_fields

Class Method Details

.sort_limitObject

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