Sha256: 0f28e7001a543751ed9ea63bb20893ecd52302526bea5c351ff29fc7d1581247

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

require_relative "relation_to_json/base"
require_relative "relation_to_json/base_reflection"
require_relative "relation_to_json/belongs_to_reflection"
require_relative "relation_to_json/has_one_reflection"
require_relative "relation_to_json/version"

class InvalidSchemaError < StandardError
  def initialize(invalid_attributes, klass)
    @invalid_attributes = invalid_attributes
    @klass = klass
  end

  def message
    "The attributes: #{@invalid_attributes} do not exist on the model: #{@klass.name}, which has attributes #{@klass.column_names}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relation_to_json-0.1.0 lib/relation_to_json.rb