aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/active_model.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed unused deprecation requires.Paul Nikitochkin2013-07-031-2/+0
|
* Remove deprecated `ActiveRecord::Generators::ActiveModel#update_attributes` inVipul A M2013-07-031-6/+0
| | | | favor of `ActiveRecord::Generators::ActiveModel#update`
* restore correct scaffold generationNolan Evans2013-06-251-1/+1
|
* Change reference to all to scoped instead.Steve Klabnik2013-06-251-1/+1
| | | | | | In #11088, `#to_a` was added to remove a deprecation around using `#all`. I merged, but it really should have been `#scoped` instead, as that's the preferred replacement.
* fix deprecation warning in scaffold controllersNolan Evans2013-06-251-1/+1
|
* Deprecate `Rails::Generators::ActiveModel#update_attributes`Carlos Antonio da Silva2013-01-121-0/+8
| | | | | | | | | | | | | | | | Deprecate #update_attributes in favor of `#update`. ORMs that implement `Generators::ActiveModel#update_attributes` should change to `#update`. Scaffold controller generators should change calls like: @orm_instance.update_attributes(...) to: @orm_instance.update(...) This goes along with the addition of `ActiveRecord::Base#update`, introduced in cb2bd4aa619d9329c42aaf6d9f8eacc616ce53f4.
* Updating default application templates to use update instead of ↵Amparo Luna + Guillermo Iguaran2013-01-031-2/+2
| | | | update_attributes
* Merge pull request #3359 from mrreynolds/datamapper_naming_fixRafael Mendonça França2012-05-191-1/+1
|\ | | | | Fixed DataMapper namings in symbols and constants.
| * Fixed DataMapper namings in symbols and constants.Robert Glaser2011-10-181-1/+1
| |
* | consistently mention first patch, then putXavier Noria2012-02-241-3/+3
| | | | | | | | | | | | There was a mix, sometimes patch first, sometimes put first. Use always patch first, since this is going to be the primary verb for updates.
* | Add config.default_method_for_update to support PATCHDavid Lee2012-02-221-3/+3
|/ | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* edit pass to apply API guideline wrt the use of "# =>" in example codeXavier Noria2010-07-301-3/+3
|
* By default use ActiveModel API in controller generators, unless otherwise ↵José Valim2009-10-171-7/+11
| | | | specified [#3123 status:resolved]
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+74