Comments (15)
That it would. Its on my radar. Can't promise when, but soon as I can.
from validates_timeliness.
Yea, I would like to see this too!
Just for grins, I tried it and it kept blowing up on my seeds with
undefined method `generated_methods?' for #Class:0x108185980
from validates_timeliness.
Hi Adzap, any update on Rails 3 support? With Rails 3b4, I got the same error with generated_methods? not defined.
from validates_timeliness.
I should be able to get to it within the next week. I am working on a Rails 3 project now and it makes it much easier and motivating than trying to do it in isolation.
from validates_timeliness.
I've started quick'n'dirty porting, but have to admit that I'm no plugin specialist;-)
Check out the rails3 branch at http://github.com/huerlisi/validates_timeliness
What I've done:
- Implement Railtie to get loaded as plugin
- Update spec_helper to rails 3 and rspec 2
- Updated some deprecated API calls
I'm now down to 19 failing specs. A quick look into those showed, that it won't be easy for me to fix them;-)
I hope this branch helps you by concentrating on the actual validation failures.
Thx for this great plugin, btw!
from validates_timeliness.
Thanks for the commits. But I am likely to rewrite the plugin for Rails 3. There are design aspects I am not happy with and it's perfect to time to fix them.
from validates_timeliness.
Out of curiousity, when do you think you'll do this proposed rewrite?
from validates_timeliness.
Working on it now. Should be able to push something this week.
from validates_timeliness.
That would be very cool :) Right now the rails 3 branch of the app I was using it in has some important validations commented out...I'd love to get them back in! ;)
from validates_timeliness.
I have an active rails3 branch if you want to follow the progress. It is not production ready as it is missing a few features. It does not have the plugin formats facility yet, nor the rigorous handling of invalid values. Use with high caution if you must.
It can't currently distinguish between an invalid parsed value where the attribute value is nil, and a plain nil value. The difference being what is stored as the before_type_cast value which it currently does not support.
from validates_timeliness.
If anyone is game you can give the rails3 branch a try. There are few changes in the API and the custom parser is not yet in. Custom error messages must be put in the locale files also.
Let me know if you get any problems.
from validates_timeliness.
Cool, will take a look in the next few days!
from validates_timeliness.
Currently testing the rails3 branch. It mostly works, but bears some surprises has some rough edges;-) Good work, anyway!
Shall I file separate issues for each finding, or do you like me to add 'em here as comments?
Will try to add Railtie/Gem support if you're interested.
from validates_timeliness.
Please add them as separate issues. I can never remember is users can tag issues or not. If so then tag rails 3. Otherwise I will later.
I will look into the Railtie stuff, thanks anyway. Gem I am keeping until a pre release.
from validates_timeliness.
I have released a gem beta version. Check the master branch readme for info. Need to add more info to the upgrade page. Feel free to edit it.
Wiki also explains how to add support to other ORMs.
Add new issues if you find bugs. Closing this one.
Thanks
from validates_timeliness.
Related Issues (20)
- Check time_zone_aware_types HOT 3
- Plans to release a official 6.x version HOT 3
- `add_error` call with wrong number of arguments HOT 2
- Issue on engine test load HOT 2
- ArgumentError: wrong number of arguments (given 3, expected 1..2) on records.error.add HOT 8
- Locale for Vietnamese HOT 2
- Rails 7 Deprecation Warnings HOT 6
- Rails 7 dependency - activemodel HOT 4
- Please support Rails 7 then cut a new version HOT 1
- Additional maintainer needed HOT 2
- Support for Rails 7 HOT 4
- Is there any way that I can make sure that ranges are exclusive?
- Handle when the passed value is not a Date value. when it's a Numeric
- Comparison to ComparisonValidator HOT 3
- Format Validation only works for yyyy-mm-dd
- Support for Rails 7.1
- Friendly request for a new release with Rails 7.1 support ;) HOT 1
- Please add me to maintainers
- Does not work on rails-edge
- Please release a new version for Rails 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validates_timeliness.