Skip to content

Documentation still refers to klass config option #59

Description

@finalburn

If you use the klass option in config, e.g.:

class Card < ApplicationRecord
  include RemoteRecord
  remote_record do |c|
    c.klass RemoteRecord::PokemonTCG::Card
  end
end

This error still gets raised with the inferred class.

I think this might actually be an outdated documentation issue: the override class isn't specified with klass. Instead, it's specified with the remote_record_class parameter, e.g. remote_record RemoteRecord::PokemonTCG::Card. The documentation needs to be updated to reflect this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions