New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflect the :conditions option into associations #61
Comments
Sounds like a good idea! |
I guess this is low prio - I never seen one IRL use :conditions on associations, it's really not that common. If it would be a feature, I would suggest to make ValidationReflection plugin more generic...and as I have done some work on ValidationReflection lately, I can say you only have to change a few lines - making it a "ModelReflection" quite easy. |
Oh...my bad, no need extend ValidationReflection - everything that's needed is in Rails core: http://github.com/rails/rails/blob/master/activerecord/lib/active_record/reflection.rb |
Just wanted to add +1 to this feature request... It is natural to expect an association's input to honour the association's conditions. |
I made a initializer for my project: http://gist.github.com/353414 With a good refactoring can be merged on core :) |
Patch with spec coverage welcome! |
Sobrinho, should this make it into 1.0, or can it wait? |
I will do this for 1.0. I think this is important. I will make the patch with specs on master branch tomorrow. |
find_raw_collection_for_column should honour the association's conditions Closed by b5f771a |
Hello,
I would to request a new feature, reflect the :conditions options into associations. I have a application like that:
And I created a form like that (using HAML):
But formtastic doesn't reflect the conditions. Well, I arounded that with this:
I think that is a great feature and will be very apreciated by users :)
The text was updated successfully, but these errors were encountered: