Module: SimpleAPIFieldControl::ClassMethods
- Defined in:
- lib/simple-api-field-control.rb
Instance Method Summary collapse
Instance Method Details
#api_exclude(field) ⇒ Object
22 23 24 25 |
# File 'lib/simple-api-field-control.rb', line 22 def api_exclude(field) self.api_exclude_fields ||= [] self.api_exclude_fields << field end |
#api_include(field) ⇒ Object
17 18 19 20 |
# File 'lib/simple-api-field-control.rb', line 17 def api_include(field) self.api_include_fields ||= [] self.api_include_fields << field end |