class StrongResources::UnregisteredType

Public Class Methods

new(type) click to toggle source
# File lib/strong_resources.rb, line 25
def initialize(type)
  @type = type
end

Public Instance Methods

message() click to toggle source
# File lib/strong_resources.rb, line 29
    def message
      <<-MSG
Type "#{@type}" was not found!

This is the right-hand side of your strong_resource attributes.

See the list of default types, and directions on how to register custom
types, here: https://jsonapi-suite.github.io/strong_resources/#default-types
      MSG
    end