datamapper / dm-active_model Goto Github PK
View Code? Open in Web Editor NEWA plugin to make datamapper active_model compliant and thus compatible with rails3
Home Page: http://datamapper.org/
License: MIT License
A plugin to make datamapper active_model compliant and thus compatible with rails3
Home Page: http://datamapper.org/
License: MIT License
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.
This gem only adds like 5 methods, so does it really need to depend on a strict active_model version? Also, there is no active_model 3.1.0.beta (it is on a different track than rails)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.