Class: Pageflow::Account
Constant Summary
FeatureTarget::STATE_MAPPING
Instance Method Summary
collapse
#serializable_hash
#enabled_feature_names, #feature_state, #feature_states=, #features_configuration, #inherited_feature_state, #own_feature_state
Instance Method Details
#blacklist_for_serialization ⇒ Object
33
34
35
|
# File 'app/models/pageflow/account.rb', line 33
def blacklist_for_serialization
[:features_configuration]
end
|
#build_default_theming(*args) ⇒ Object
23
24
25
26
27
|
# File 'app/models/pageflow/account.rb', line 23
def build_default_theming(*args)
super.tap do |theming|
theming.account = self
end
end
|
#first_paged_entry_template ⇒ Object
29
30
31
|
# File 'app/models/pageflow/account.rb', line 29
def first_paged_entry_template
EntryTemplate.find_or_initialize_by(account: self, entry_type: 'paged')
end
|