Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | support anonymous classes on has_many associations | Aaron Patterson | 2013-09-03 | 1 | -1/+1 |
| | |||||
* | remove intermediate assignments | Aaron Patterson | 2013-08-01 | 1 | -3/+2 |
| | |||||
* | push option handling "chrome" outside `initialize` | Aaron Patterson | 2013-08-01 | 1 | -8/+7 |
| | |||||
* | remove `valid_options` class method | Aaron Patterson | 2013-08-01 | 1 | -4/+3 |
| | |||||
* | association builder classes no longer need the model | Aaron Patterson | 2013-08-01 | 1 | -6/+5 |
| | | | | | decouple the builder classes from the model. Builder objects should be easier to reuse now. | ||||
* | make mutation method apis more consistent | Aaron Patterson | 2013-08-01 | 1 | -2/+3 |
| | |||||
* | push more mutations outside the factory method | Aaron Patterson | 2013-08-01 | 1 | -0/+4 |
| | |||||
* | push more mutations out of the builder | Aaron Patterson | 2013-08-01 | 1 | -8/+9 |
| | | | | | `configure_dependency` actually defined callbacks, so rename the method and move it to the appropriate method. | ||||
* | remove dependency on @model when defining callbacks | Aaron Patterson | 2013-08-01 | 1 | -3/+3 |
| | |||||
* | extract more mutations to the caller | Aaron Patterson | 2013-08-01 | 1 | -6/+10 |
| | |||||
* | separate some mutations from reflection construction | Aaron Patterson | 2013-08-01 | 1 | -5/+1 |
| | |||||
* | pass the mixin in to the code generation methods | Aaron Patterson | 2013-07-31 | 1 | -6/+6 |
| | |||||
* | we should not allow invalid objects to be constructed | Aaron Patterson | 2013-07-31 | 1 | -1/+2 |
| | |||||
* | push some validation up to the factory method | Aaron Patterson | 2013-07-31 | 1 | -4/+5 |
| | |||||
* | Refactor to use flat_map | Carlos Antonio da Silva | 2013-07-23 | 1 | -3/+3 |
| | |||||
* | AR::Base does not need to know how to create reflection objects | Aaron Patterson | 2013-07-22 | 1 | -1/+1 |
| | |||||
* | remove unnecessary reader | Aaron Patterson | 2013-07-22 | 1 | -4/+4 |
| | |||||
* | only flatten one side | Aaron Patterson | 2013-07-22 | 1 | -1/+1 |
| | |||||
* | extend by adding relationships rather than monkey patching | Aaron Patterson | 2013-07-22 | 1 | -5/+7 |
| | |||||
* | decouple extensions from association object state | Aaron Patterson | 2013-07-22 | 1 | -2/+2 |
| | |||||
* | Dropped deprecated option `:restrict` for `:dependent` in associations | Neeraj Singh | 2013-07-03 | 1 | -7/+0 |
| | |||||
* | remove evals from the association | Aaron Patterson | 2013-06-11 | 1 | -8/+2 |
| | |||||
* | reduce evals in depdendent associations | Aaron Patterson | 2013-06-11 | 1 | -1/+2 |
| | |||||
* | copy edits[ci skip] | Vijay Dev | 2013-05-19 | 1 | -11/+8 |
| | |||||
* | Added some more documentation for define_readers and define_writer of the ↵ | aditya-kapoor | 2013-05-15 | 1 | -0/+7 |
| | | | | Association and its inherited classes | ||||
* | Added some more documentation for ↵ | aditya-kapoor | 2013-05-15 | 1 | -0/+11 |
| | | | | ActiveRecord::Associations::Builder::Association class | ||||
* | Added documentation for ActiveRecord::Associations::Builder::Association class | aditya-kapoor | 2013-05-15 | 1 | -0/+4 |
| | |||||
* | Ensure that associations have a symbol argument. | Steve Klabnik | 2012-11-28 | 1 | -0/+2 |
| | | | | Fixes #7418. | ||||
* | Use method compilation for association methods | Jon Leighton | 2012-08-10 | 1 | -12/+15 |
| | | | | | | | | | Method compilation provides better performance and I think the code comes out cleaner as well. A knock on effect is that methods that get redefined produce warnings. I think this is a good thing. I had to deal with a bunch of warnings coming from our tests, though. | ||||
* | DRY up handling of dependent option | Jon Leighton | 2012-08-10 | 1 | -3/+15 |
| | |||||
* | Unprivatise all the things | Jon Leighton | 2012-08-10 | 1 | -28/+26 |
| | | | | | | Well, not all of them, but some of them. I don't think there's much reason for these methods to be private. | ||||
* | move dependency logic out of generated methods | Jon Leighton | 2012-08-10 | 1 | -24/+0 |
| | |||||
* | Clean up dependent option validation. | Jon Leighton | 2012-08-10 | 1 | -8/+4 |
| | | | | | We don't need the complexity of to_sentence, and it shouldn't be a bang method. | ||||
* | Remove the dependent_restrict_raises option. | Jon Leighton | 2012-08-10 | 1 | -19/+19 |
| | | | | | | | | | | | | | | | It's not really a good idea to have this as a global config option. We should allow people to specify the behaviour per association. There will now be two new values: * :dependent => :restrict_with_exception implements the current behaviour of :restrict. :restrict itself is deprecated in favour of :restrict_with_exception. * :dependent => :restrict_with_error implements the new behaviour - it adds an error to the owner if there are dependent records present See #4727 for the original discussion of this. | ||||
* | Refactor dependency check validation | Carlos Antonio da Silva | 2012-08-01 | 1 | -10/+7 |
| | | | | | | Move the logic for validation check to the same method, and cache dependent option in a variable to reuse inside the dependency configuration methods instead of relying on the options hash. | ||||
* | move method for dependent option check | Hrvoje Šimić | 2012-08-01 | 1 | -0/+13 |
| | |||||
* | Avoid options ever being nil | Jon Leighton | 2012-07-20 | 1 | -4/+4 |
| | | | | This fixes active_record_deprecated_finders. | ||||
* | fix association :extend option | Jon Leighton | 2012-07-13 | 1 | -0/+5 |
| | |||||
* | move the deprecated options into active_record_deprecated_finders | Jon Leighton | 2012-07-13 | 1 | -1/+1 |
| | |||||
* | stop using class_attribute where methods/inheritance will suffice. | Jon Leighton | 2012-07-13 | 1 | -7/+18 |
| | |||||
* | extract deprecated association options to active_record_deprecated_finders | Jon Leighton | 2012-07-13 | 1 | -43/+0 |
| | |||||
* | Represent association scope options as AR::Relations insternally. | Jon Leighton | 2012-07-13 | 1 | -0/+43 |
| | |||||
* | Allow associations to take a lambda which builds the scope | Jon Leighton | 2012-07-13 | 1 | -6/+15 |
| | |||||
* | Refactor define_restrict_dependency_method using reflection | Paco Guzman | 2012-02-01 | 1 | -3/+3 |
| | |||||
* | Use human attribute name to show the dependent destroy message | Rafael Mendonça França | 2012-02-01 | 1 | -1/+2 |
| | |||||
* | fix has_one, has_many restrict error message | Manoj | 2012-02-01 | 1 | -1/+2 |
| | |||||
* | Merge pull request #4799 from arunagw/warning_fixed_for_indentations | Aaron Patterson | 2012-01-31 | 1 | -1/+1 |
|\ | | | | | warning removed: mismatched indentations | ||||
| * | warning removed: mismatched indentations | Arun Agrawal | 2012-01-31 | 1 | -1/+1 |
| | | |||||
* | | Put spaces between the words at deprecation warning | Rafael Mendonça França | 2012-01-31 | 1 | -3/+3 |
|/ | |||||
* | suggested fixes for :dependent => :restrict deprecation. | Manoj | 2012-01-31 | 1 | -1/+1 |
| |