Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an ↵ | José Valim | 2010-05-15 | 15 | -139/+111 |
| | | | | | | | | options hash and make various Validators pass their (filtered) options." Having a huge array to whitelist options is not the proper way to handle this case. This means that the ActiveModel::Errors object should know about the options given in *all* validators and break the extensibility added by the validators itself. If the intent is to whitelist options before sending them to I18n, each validator should clean its respective options instead of throwing the responsibility to the Errors object. This reverts commit bc1c8d58ec45593acba614d1d0fecb49adef08ff. | ||||
* | Optimize the code added in fa99de0bd054576336c9 | José Valim | 2010-05-15 | 1 | -9/+19 |
| | |||||
* | Ruby 1.9: fix invalid rack response in test | Jeremy Kemper | 2010-05-15 | 1 | -1/+1 |
| | |||||
* | make sure `as` is set before trying to build an #{as}_counter. [#2804 ↵ | Jeff Kreeftmeijer | 2010-05-15 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options ↵ | Jeroen van Dijk | 2010-05-15 | 15 | -111/+139 |
| | | | | | | | | | | | | | | | | | | | | hash and make various Validators pass their (filtered) options. This makes it possible to pass additional options through Validators to message generation. E.g. plugin authors want to add validates_presence_of :foo, :format => "some format". Also, cleanup the :default vs :message options confusion in ActiveModel validation message generation. Also, deprecate ActiveModel::Errors#add_on_blank(attributes, custom_message) in favor of ActiveModel::Errors#add_on_blank(attributes, options). Original patch by Sven Fuchs, some minor changes and has been changed to be applicable to master again [#4057 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Reset quoted_table_name after set_table_name [#4568 state:resolved] | Santiago Pastorino | 2010-05-15 | 2 | -1/+13 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | partial counters with :as [#2804 state:resolved] | Jeff Kreeftmeijer | 2010-05-15 | 3 | -0/+11 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix for get_ids when including a belongs_to association on a has_many ↵ | Diego Algorta | 2010-05-15 | 3 | -1/+6 |
| | | | | | | association [#2896 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add tests for convenience methods #notice and #alert to flash.now [#4369 ↵ | Anil Wadghule | 2010-05-15 | 1 | -0/+20 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | added convenience methods #notice and #alert to flash.now | Martin | 2010-05-15 | 1 | -0/+10 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fix assert_select messages to its declaration behaviour | Paco Guzman | 2010-05-15 | 2 | -8/+24 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Update generators test. | José Valim | 2010-05-15 | 1 | -12/+1 |
| | |||||
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 11 | -52/+154 |
| | | | | | | | | | | | | | | | without the need for Railtie. Specifically, the following hooks were added: * before_configuration: this hook is run immediately after the Application class comes into existence, but before the user has added any configuration. This is the appropriate place to set configuration for your plugin * before_initialize: This is run after all of the user's configuration has completed, but before any initializers have begun (in other words, it runs right after config/environments/{development,production,test}.rb) * after_initialize: This is run after all of the initializers have run. It is an appropriate place for forking in a preforking setup Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie. | ||||
* | Remove the need for a special action_mailer.url_for initializer that loads ↵ | wycats | 2010-05-15 | 2 | -66/+86 |
| | | | | before anything else | ||||
* | Added Rake task rails:templates:copy to copy templates for customization ↵ | Jeroen van Dijk + Rodrigo Urubatan | 2010-05-15 | 1 | -0/+22 |
| | | | | | | [#4574 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add missing require to with_options [#4601 state:resolved] | Carlos Antonio da Silva | 2010-05-15 | 1 | -0/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | STI should not ignore type condition while applying scopes from parent class ↵ | Neeraj Singh | 2010-05-15 | 2 | -5/+6 |
| | | | | | | | | scopes [#4507 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Bundler deprecated options in Gemfile with application template using method ↵ | Adrian Sanchez | 2010-05-15 | 2 | -3/+14 |
| | | | | | | "gem" [#4534 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Accept :alt => nil on image_tag [#4558 state:resolved] | Marc-Andre Lafortune | 2010-05-15 | 2 | -2/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | ActiveResource shouldn't consider modules in the path | Santiago Pastorino | 2010-05-15 | 3 | -16/+12 |
| | | | | | | [#4529 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve previous patch a bit [#3645 state:resolved] | José Valim | 2010-05-15 | 3 | -9/+11 |
| | |||||
* | Let label helpers accept blocks. | Stephen Celis | 2010-05-15 | 4 | -21/+56 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Modified default_scope to merge with any pre-existing default_scope | David Chelimsky + Brian Tatnall | 2010-05-15 | 2 | -3/+34 |
| | | | | | | | | | | | | and added AR::Base::clear_default_scope - clear_default_scope provides users who rely on the old behaviour of each call to default_scope overwriting any previous default scopes an opportunity to maintain that behaviour. [#4583 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Better code formatting and proper line numbers for stack traces | Neeraj Singh | 2010-05-14 | 4 | -19/+19 |
| | | | | | | [#4596 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | To allow proper fisting of stack trace | Santiago Pastorino | 2010-05-14 | 1 | -3/+3 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Changed encoding behaviour of mail, so updated tests in actionmailer and ↵ | Mikel Lindsaar | 2010-05-14 | 3 | -4/+8 |
| | | | | | | bumped mail version to 2.2.1 Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | minor changes to instance level validations implementation based on feedback ↵ | Josh Kalderimis | 2010-05-13 | 4 | -38/+17 |
| | | | | from José Valim | ||||
* | validation macros can now be used within an instance | Josh Kalderimis | 2010-05-13 | 13 | -14/+114 |
| | |||||
* | defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵ | Xavier Noria | 2010-05-12 | 7 | -34/+77 |
| | | | | deprecates last_(month|year) | ||||
* | Fixes to_json and to_xml for ActiveResource | Santiago Pastorino | 2010-05-12 | 1 | -6/+15 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Revert "Refactor of active_model/naming.rb and allow collection and element ↵ | Santiago Pastorino | 2010-05-12 | 2 | -59/+5 |
| | | | | | | | | to be writable" This reverts commit f7862b2c34b5b298bf7b937c55f0637ebfe43a25. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make ActiveResource serialize XML correctly when element_name is set. | Santiago Pastorino | 2010-05-12 | 4 | -7/+54 |
| | | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Refactor of active_model/naming.rb and allow collection and element to be ↵ | Santiago Pastorino | 2010-05-12 | 2 | -5/+59 |
| | | | | | | writable Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make use of to_xml and to_json in tests | Santiago Pastorino | 2010-05-12 | 1 | -2/+7 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | revises the rdoc of #average according to 5f3bd55, and realigns when clauses | Xavier Noria | 2010-05-12 | 1 | -5/+4 |
| | |||||
* | type_cast_calculated_value refactor: value is never a Fixnum here. Fix test ↵ | Santiago Pastorino | 2010-05-11 | 2 | -3/+2 |
| | | | | | | | | since SQLite returns Float. [#4514 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Gemfile requires sqlite3-ruby 1.3.0.beta.1 | Xavier Noria | 2010-05-12 | 1 | -1/+1 |
| | |||||
* | Make sure timestamp is properly referenced | Blake Smith | 2010-05-11 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove undocumented save_without_validation! | Pratik Naik | 2010-05-11 | 2 | -10/+0 |
| | |||||
* | Use arel instead of sql strings | Pratik Naik | 2010-05-11 | 1 | -6/+5 |
| | |||||
* | Succint save definition | Pratik Naik | 2010-05-11 | 1 | -4/+2 |
| | |||||
* | corrected error message in session/cookie_store [#4546 state:resolved] | Josh Kalderimis | 2010-05-10 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make sure valid? preceives the context as in ActiveModel API (ht: Carlos ↵ | José Valim | 2010-05-10 | 4 | -26/+45 |
| | | | | Antonio) | ||||
* | Make sure schema dumper doesnt throw up when there are no index lengths | Pratik Naik | 2010-05-09 | 1 | -1/+3 |
| | |||||
* | Revert "Revert "Add index length support for MySQL [#1852 state:open]"" | Pratik Naik | 2010-05-09 | 7 | -3/+73 |
| | | | | This reverts commit 6626833db13a69786f9f6cd56b9f53c4017c3e39. | ||||
* | Improve code from 231d7676f72947bae765b9bd885b134aaf949921 | Pratik Naik | 2010-05-09 | 1 | -7/+5 |
| | |||||
* | corrected AR find_each and find_in_batches to raise when the user uses ↵ | Josh Kalderimis | 2010-05-09 | 2 | -1/+22 |
| | | | | | | select but does not specify the primary key Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Merge branch 'master' of github.com:rails/rails | José Valim | 2010-05-09 | 7 | -6/+123 |
|\ | |||||
| * | Merge remote branch 'rails/master' | Xavier Noria | 2010-05-09 | 66 | -1013/+1065 |
| |\ | |||||
| | * | aliases Date#sunday to Date#end_of_week, for symmetry with existing alias ↵ | Xavier Noria | 2010-05-09 | 2 | -0/+3 |
| | | | | | | | | | | | | Date#monday -> Date#beginning_of_week |