Skip to content

Not really ORM-Agnostic #75

Open
Open

Description

@HoneyryderChuck

This gem doesn't work for Sequel, not outside of the box at least. The EachValidator object is AFAIK only defined in Rails, and is not part of the ActiveModel spec.

One could remove the ORM-agnostic description (unless there's morethan ActiveRecord this gem supports) or build a validation method to be added to Sequel::Model when loading the ValidationHelpers plugin.

Activity

  1. jufemaiz commented on Sep 19, 2016

    @jufemaiz

    @TiagoCardoso1983 are you correctly including ActiveModel::Validations?

    http://api.rubyonrails.org/classes/ActiveModel/Validator.html

  2. HoneyryderChuck commented on Sep 19, 2016

    @HoneyryderChuck
    Author

    sequel has its own validations plugin, and therefore doesn't use activemodel validations. If this gem requires them, then it is neither ORM-agnostic nor Rails-agnostic. Am I correct inferring this? Because if so, you could at least update the "ORM-agnostic" disclaimer in the README.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions