Giter Site home page Giter Site logo

dm-active_model's People

Contributors

dkubb avatar gix avatar snusnu avatar solnic avatar tpitale avatar xaviershay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dm-active_model's Issues

Update dm-active_model to be able to be used with activemodel ~>3.2.0

The current version restrictions on dm-active_model require activemodel ~>3.1.0. Can a new version of dm-active_model be released that can utilize activemodel ~>3.2.0?

The end goal is to restore functionality to dm-active_model in the FreeBSD ports tree. activemodel was updated to version 3.2.0, which results in dm-active_model complaining about it being unable to find a valid install for ~>3.1.0.

including `ActiveModel::Validations` breaks DataMapper validations

If a DataMapper model includes ActiveModel::Validations ActiveModel's implementation will override DataMapper's. This could happen for example by using ActiveModel::SecurePassword and has_secure_password for example when not disabling the included Validations with has_secure_password(:validations => false).

I'm not sure how it could be possible to implement a ActiveModel agnostic dm-validations when both dm-validations and ActiveModel are claiming the errors method for themselves.

Perhaps this gem could include ActiveModel::Validations in every DataMapper::Resource (causing .errors to return ActiveModel::Errors). The nice effect: You could use ActiveModel validators in your DataMapper model. The problem: AFAICS this would disable all DataMapper validations. I don't know if there is an elegant solution to delegate the error retrieval back to DataMapper.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.