Class: Pageflow::Account
Constant Summary
FeatureTarget::STATE_MAPPING
Class Method Summary
collapse
Instance Method Summary
collapse
#serializable_hash
#enabled_feature_names, #feature_state, #feature_states=, #features_configuration, #inherited_feature_state, #own_feature_state
Class Method Details
.ransackable_associations(_auth_object = nil) ⇒ Object
35
36
37
|
# File 'app/models/pageflow/account.rb', line 35
def self.ransackable_associations(_auth_object = nil)
[]
end
|
.ransackable_attributes(_auth_object = nil) ⇒ Object
31
32
33
|
# File 'app/models/pageflow/account.rb', line 31
def self.ransackable_attributes(_auth_object = nil)
%w[id name]
end
|
Instance Method Details
#blacklist_for_serialization ⇒ Object
27
28
29
|
# File 'app/models/pageflow/account.rb', line 27
def blacklist_for_serialization
[:features_configuration]
end
|
#build_default_site(*args) ⇒ Object
21
22
23
24
25
|
# File 'app/models/pageflow/account.rb', line 21
def build_default_site(*args)
super.tap do |site|
site.account = self
end
end
|