Module: TrustedAttributes
- Defined in:
- lib/trusted_attributes.rb,
lib/trusted_attributes/version.rb
Defined Under Namespace
Modules: ClassMethods
Classes: UntrustedAttributesError
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
15
16
17
18
19
|
# File 'lib/trusted_attributes.rb', line 15
def self.included(base)
base.hide_action :accessible_attributes
base.extend ClassMethods
super
end
|
Instance Method Details
#accessible_attributes ⇒ Object
29
30
31
|
# File 'lib/trusted_attributes.rb', line 29
def accessible_attributes
@_accessible_attributes ||= []
end
|