aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | update ActiveModel::SecurePassword docs [ci skip]Francesco Rodriguez2012-07-291-18/+38
| | | |
| * | | add example to ActiveModel::StrictValidationFailed [ci skip]Francesco Rodriguez2012-07-281-0/+13
| | | |
| * | | add example to ActiveModel::MissingAttributeError [ci skip]Francesco Rodriguez2012-07-281-0/+8
| | | |
| * | | update ActiveModel::MassAssignmentSecurity docs [ci skip]Francesco Rodriguez2012-07-281-65/+177
| | | |
| * | | add example to ActiveModel::Naming#model_name [ci skip]Francesco Rodriguez2012-07-271-0/+8
| | | |
| * | | fix AM::Naming examples [ci skip]Francesco Rodriguez2012-07-271-12/+12
| | | |
| * | | update to_param docs [ci skip]Francesco Rodriguez2012-07-271-2/+5
| | | |
| * | | Revert "Removed reference to composed_of."Rafael Mendonça França2012-07-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c34c1916d1d6cd6ba219aa39eb97fa2e77c4c61f. Reason: composed_of was added from now to discuss better
| * | | use 'HTTP_AUTHORIZATION' instead of :authorization as key when dealing with ↵Francesco Rodriguez2012-07-271-1/+1
| | | | | | | | | | | | | | | | HTTP Token authentication in integration tests
| * | | Update performance testing guide [ci skip]Francesco Rodriguez2012-07-241-78/+152
| | | | | | | | | | | | | | | | | | | | | | | | * Update test templates. * Remove some 1.8 references. * Update guide format to be easier for contributors.
| * | | Removed reference to composed_of.Steve Klabnik2012-07-231-3/+0
| | | | | | | | | | | | | | | | | | | | It was previously removed from the code, so we shouldn't mention it in the docs
| * | | fix removed ruby tag in commit 890b9dd [ci skip]Francesco Rodriguez2012-07-221-4/+5
| | | |
| * | | added 2 strategies for extending engine modelsWeston Platter2012-07-221-1/+78
| | | |
| * | | tiny mistake in descriptiondm1try2012-07-221-1/+1
| | | |
| * | | add :nodoc: directive to AM::ObserverArray internal methods [ci skip]Francesco Rodriguez2012-07-221-10/+10
| | | |
* | | | Merge pull request #7260 from thomasklemm/patch-1Vijay Dev2012-08-041-1/+1
|\ \ \ \ | |_|/ / |/| | | Update Migration Docs: Defaults for Boolean Fields
| * | | Update Migration Docs: Defaults for Boolean FieldsThomas Klemm2012-08-041-1/+1
|/ / / | | | | | | A Boolean field will accept true or false as defaults instead of 0 / 1.
* | | Make ActiveRecord::Model::DeprecationProxy work betterJon Leighton2012-08-033-22/+55
| | | | | | | | | | | | Closes #6600
* | | Update the docs to reflect the new association APIJon Leighton2012-08-032-462/+385
| | |
* | | Merge pull request #7253 from acapilleri/lenght_validator_errors_optionsRafael Mendonça França2012-08-031-2/+2
|\ \ \ | | | | | | | | calculate errors_options one time in validate_each
| * | | calculate errors_options one time in validate_eachAngelo Capilleri2012-08-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | errors_options is calculated for every *CHECKS* but it could be calculated one time because options and RESERVED_OPTIONS not change during this cycle
* | | | Add test select_tag escapes promptSantiago Pastorino2012-08-031-0/+6
| | | |
* | | | Use content_tag here instead of manually building HTMLSantiago Pastorino2012-08-031-2/+6
| | | |
* | | | Don't eager load all thisSantiago Pastorino2012-08-031-32/+33
| | | | | | | | | | | | | | | | | | | | Some are loaded from Base which is loaded when a model inherits from it and some others are used in rake tasks
* | | | Remove ActiveRecord::Base.to_aJon Leighton2012-08-0318-64/+55
| | | | | | | | | | | | | | | | | | | | On reflection, it seems like a bit of a weird method to have on ActiveRecord::Base, and it shouldn't be needed most of the time anyway.
* | | | reinstate changelog that seems to have been accidentally deleted o_OJon Leighton2012-08-031-0/+19
| | | |
* | | | Allow Relation#merge to take a proc.Jon Leighton2012-08-033-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was requested by DHH to allow creating of one's own custom association macros. For example: module Commentable def has_many_comments(extra) has_many :comments, -> { where(:foo).merge(extra) } end end class Post < ActiveRecord::Base extend Commentable has_many_comments -> { where(:bar) } end
* | | | make sure the body finishes rendering before checking response closureAaron Patterson2012-08-031-1/+2
| | | |
* | | | Merge pull request #7231 from armanddp/no_contentRafael Mendonça França2012-08-023-8/+38
|\ \ \ \ | | | | | | | | | | Remove single character body in head(:no_content) response
| * | | | Collapsed dual checks (one for content headers and one for content) into a ↵Armand du Plessis2012-08-023-8/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | single check. Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent. This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response. Status comparison done on symbolic and numeric values Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
* | | | | Remove `:rails_env` task since it is not needed anymore.Rafael Mendonça França2012-08-022-16/+9
|/ / / /
* | | | Merge pull request #7240 from steveklabnik/fix_2301Rafael Mendonça França2012-08-023-4/+7
|\ \ \ \ | | | | | | | | | | Fix for digest authentication bug - issue #2301 in rails/rails
| * | | | Changelog entry for Digest Auth fix (#2301)Steve Klabnik2012-08-021-0/+2
| | | | |
| * | | | Fix for digest authentication bug - issue #2301 in rails/railsArthur Smith2012-08-022-4/+5
| | | | |
* | | | | load active_support/deprecation in active_support/railsXavier Noria2012-08-0220-19/+4
| | | | |
* | | | | load active_support/core_ext/module/delegation in active_support/railsXavier Noria2012-08-0217-16/+3
| | | | |
* | | | | load active_support/core_ext/class/attribute in active_support/railsXavier Noria2012-08-0232-34/+6
| | | | |
* | | | | load active_support/concern in active_support/railsXavier Noria2012-08-0217-16/+3
| | | | |
* | | | | load active_support/dependencies/autoload in active_support/railsXavier Noria2012-08-023-2/+3
| | | | |
* | | | | load active_support/core_ext/object/inclusion in active_support/railsXavier Noria2012-08-0226-25/+4
| | | | |
* | | | | load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-0255-54/+2
| | | | |
* | | | | defines a private require-hub active_support/railsXavier Noria2012-08-028-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a private place to put those AS features that are used by every component. Nowadays we cherry-pick individual files wherever they are used, but that it is not worth the effort for stuff that is going to be loaded for sure sooner or later, like blank?, autoload, concern, etc.
* | | | | Check validity of options[:as] just onceJosé Valim2012-08-021-12/+18
| | | | |
* | | | | Merge pull request #7129 from kennyj/fix_7079José Valim2012-08-022-7/+19
|\ \ \ \ \ | |/ / / / |/| | | | Improve error handling when using partial name with hyphen. #7079
| * | | | Improve error handling when using partial name with hyphen. Fix #7079kennyj2012-08-032-7/+19
| | | | |
* | | | | Fix tests.Rafael Mendonça França2012-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Since b6ab4417720e03f1551abda2f1e4bd0a392dd04e the single quotes are being escaped in the templates.
* | | | | Do not consider the numeric attribute as changed if the old value isRafael Mendonça França2012-08-022-2/+15
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zero and the new value is not a string. Before this commit this was the behavior r = Review.find_by_issue(0) r.issue => 0 r.changes => {} r.issue = 0 => 0 r.changed? => true r.changes => {"issue"=>[0,0]} Fixes #7237 Conflicts: activerecord/CHANGELOG.md
* | | | s/scoped/scope/Jon Leighton2012-08-019-27/+33
| | | |
* | | | Add CollectionProxy#scopeJon Leighton2012-08-013-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can be used to get a Relation from an association. Previously we had a #scoped method, but we're deprecating that for AR::Base, so it doesn't make sense to have it here. This was requested by DHH, to facilitate code like this: Project.scope.order('created_at DESC').page(current_page).tagged_with(@tag).limit(5).scoping do @topics = @project.topics.scope @todolists = @project.todolists.scope @attachments = @project.attachments.scope @documents = @project.documents.scope end
* | | | Use explicit delegationsJon Leighton2012-08-011-119/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier to see what the documentation refers to. It also means that we are not doing unnecessary work for delegations that have no args / splats / block / etc.