Module: Dryopteris::RailsExtension::ClassMethods
- Defined in:
- lib/dryopteris/rails_extension.rb
Instance Method Summary collapse
- #sanitize_fields(options = {}) ⇒ Object (also: #sanitize_field)
Instance Method Details
#sanitize_fields(options = {}) ⇒ Object Also known as: sanitize_field
16 17 18 19 20 21 |
# File 'lib/dryopteris/rails_extension.rb', line 16 def sanitize_fields( = {}) write_inheritable_attribute(:dryopteris_options, { :except => ([:except] || []), :allow_tags => ([:allow_tags] || []) }) end |