Method: JSONAPI::Resource.method_missing
- Defined in:
- lib/jsonapi/resource.rb
.method_missing(method, *args) ⇒ Object
TODO: remove this after the createable_fields and updateable_fields are phased out :nocov:
562 563 564 565 566 567 568 569 570 571 572 |
# File 'lib/jsonapi/resource.rb', line 562 def method_missing(method, *args) if method.to_s.match /createable_fields/ ActiveSupport::Deprecation.warn('`createable_fields` is deprecated, please use `creatable_fields` instead') creatable_fields(*args) elsif method.to_s.match /updateable_fields/ ActiveSupport::Deprecation.warn('`updateable_fields` is deprecated, please use `updatable_fields` instead') updatable_fields(*args) else super end end |