class InvalidSchemaError
Public Class Methods
new(invalid_attributes, klass)
click to toggle source
# File lib/relation_to_json.rb, line 8 def initialize(invalid_attributes, klass) @invalid_attributes = invalid_attributes @klass = klass end
Public Instance Methods
message()
click to toggle source
# File lib/relation_to_json.rb, line 13 def message "The attributes: #{@invalid_attributes} do not exist on the model: #{@klass.name}, which has attributes #{@klass.column_names}" end