Carlos Antonio da Silva
4b97ce5eb1
Remove deprecated constants from Action Controller
...
ActionController::AbstractRequest => ActionDispatch::Request
ActionController::Request => ActionDispatch::Request
ActionController::AbstractResponse => ActionDispatch::Response
ActionController::Response => ActionDispatch::Response
ActionController::Routing => ActionDispatch::Routing
ActionController::Integration => ActionDispatch::Integration
ActionController::IntegrationTest => ActionDispatch::IntegrationTest
2013-07-01 22:20:23 -03:00
Aaron Patterson
1f75319a9a
avoid intermediate zipped array
2013-07-01 18:06:25 -07:00
Aaron Patterson
6cd8e3f58e
make the identity type a singleton to save on object creation
2013-07-01 18:00:52 -07:00
Aaron Patterson
b7aba569c8
only deal with strings internally
2013-07-01 17:56:47 -07:00
Rafael Mendonça França
11c2e80bab
Merge pull request #11222 from neerajdotname/removed-deprecation-for-sql
...
Removed deprecated options for assocations
2013-07-01 17:55:20 -07:00
Aaron Patterson
6518f12b73
build an AST rather than slapping strings together
2013-07-01 17:54:40 -07:00
Neeraj Singh
a8c888cca9
Removed deprecated options for assocations
...
Deprecated options `delete_sql`, `insert_sql`, `finder_sql` and `counter_sql`
have been deleted.
2013-07-02 06:22:25 +05:30
Carlos Antonio da Silva
1144d5e4a1
Remove deprecation messages about protected_attributes and rails-observers
2013-07-01 21:36:15 -03:00
Aaron Patterson
5cba5530ac
stop exposing the underlying alias datastructure
2013-07-01 17:33:47 -07:00
Aaron Patterson
b9d98597cc
we don't need to to_s the column
2013-07-01 16:55:10 -07:00
Carlos Antonio da Silva
9d0a65320f
Add missing require
...
Commit cfa35c55bb38b27af305ad21408e181bc3cd739e removed the
buffered_logger from AS, which required the logger file. Now we need to
add the proper require here.
2013-07-01 20:49:17 -03:00
Aaron Patterson
d094aaad19
the data structure used to store attribute aliases should not be exposed
2013-07-01 16:23:08 -07:00
Yves Senn
a444ea3478
remove deprecated ActiveRecord::Base#connection
method.
2013-07-01 22:44:24 +02:00
Yves Senn
5339442028
Merge pull request #11227 from vipulnsward/form_builder
...
Remove `FormBuilder` deprecation warning about block argument and tests
2013-07-01 13:39:04 -07:00
Vipul A M
38aafc0377
Remove FormBuilder
deprecation warning about block argument and associated tests
2013-07-02 02:06:39 +05:30
Yves Senn
dc9ff7bb7c
remove auto-explain-config deprecation warning
2013-07-01 22:18:49 +02:00
Yves Senn
cfa35c55bb
remove deprecated BufferedLogger
.
2013-07-01 22:16:37 +02:00
Rafael Mendonça França
cd74f0292f
Merge pull request #11224 from senny/remove_assert_blank_and_assert_present
...
remove deprecated `assert_present` and `assert_blank`.
2013-07-01 13:15:01 -07:00
Rafael Mendonça França
b6e061459b
Merge pull request #11226 from senny/remove_deprecated_distinct_option
...
Remove deprecated `:distinct` option from `Relation#count`.
2013-07-01 13:13:57 -07:00
Yves Senn
2181832fca
Remove deprecated :distinct
option from Relation#count
.
2013-07-01 22:11:20 +02:00
Yves Senn
74ebc451c9
remove deprecated assert_present
and assert_blank
.
2013-07-01 22:06:26 +02:00
Carlos Antonio da Silva
259161881f
Merge pull request #11220 from aditya-kapoor/add-concern
...
Change Rails Migration generator module to use AS::Concern
2013-07-01 12:47:00 -07:00
Carlos Antonio da Silva
a91b48e279
Merge pull request #11221 from neerajdotname/partial_updates_family
...
Removed deprecated methods partial_updates and family
2013-07-01 12:44:42 -07:00
Neeraj Singh
1f45d3c94d
Removed deprecated methods partial_updates and family
...
Removed deprecated methods `partial_updates`, `partial_updates?` and
`partial_updates=`
2013-07-02 00:50:50 +05:30
Rafael Mendonça França
42cf96fe9c
Merge pull request #11213 from neerajdotname/scoped-deprecated
...
Removed deprecated scoped method
Conflicts:
activerecord/CHANGELOG.md
2013-07-01 15:48:29 -03:00
Rafael Mendonça França
00550b57b6
Merge pull request #11212 from neerajdotname/default_scopes_q_deprecated
...
Removed deprecated default_scopes?
2013-07-01 11:46:08 -07:00
Rafael Mendonça França
ab6601ccdf
Merge pull request #11203 from schneems/schneems/plugin_new-plugin
...
s/plugin_new/plugin
2013-07-01 11:36:47 -07:00
Neeraj Singh
b343abd875
Removed deprecated method scoped
2013-07-01 23:02:08 +05:30
Neeraj Singh
432cbc8419
Removed deprecated method default_scopes?
2013-07-01 22:59:46 +05:30
aditya-kapoor
1c07a3231d
Using ActiveSupport::Concern instead of plain regular Ruby hooks in railties/lib/rails/generators/migration.rb file
2013-07-01 22:27:01 +05:30
Carlos Antonio da Silva
6c82844fce
Merge pull request #11207 from vipulnsward/remove_escapes
...
Remove redundant escapes from xml serialization test
2013-07-01 07:42:04 -07:00
Guillermo Iguaran
b7a43ddd39
Merge pull request #11211 from gsamokovarov/trailing-comma
...
Further clean-up of ActiveSupport::Callbacks
2013-07-01 07:40:24 -07:00
Genadi Samokovarov
269b4638d5
Further clean-up of ActiveSupport::Callbacks
...
In #11195 I noticed a trailing comma in the docs, but I decided to
further clean it up.
What I have done:
* Clean up the trailing comma in the docs and some extra whitespace
lines.
* Used `Array#extract` options to factor the repetitive pattern of
`args.last.is_a(Hash) ? ...`
* Renamed the local var `config` to `options` in `define_callbacks`, as
`options` seems to be the de facto name for the options objects.
* Renamed the local var `l` to `line` in `define_callback` (maybe it
meant `lambda` in the context) as single `l` may look like `1` in some
fonts.
2013-07-01 12:18:25 +03:00
Santiago Pastorino
534271db0d
Merge pull request #10099 from wangjohn/railties_each_with_config_2nd_attempt
...
Created way of cloning a Rails::Application instance
2013-07-01 01:47:34 -07:00
Vipul A M
404a61e19c
Remove redundant escapes from xml serialization test
2013-07-01 10:17:33 +05:30
schneems
ec8d8652f3
s/plugin_new/plugin
...
There are historical reasons that the `plugin` command was `plugin_new`, now those are no longer applicable, we should remove the naming edge case from the project. This PR is based off of comments from #11176
ATP Railties
2013-06-30 22:03:39 -04:00
wangjohn
08dc92421a
Allowing multiple rails applications in the same ruby instance.
...
This change provides the ability to create a new application with a
configuration which can be specified.
2013-06-30 18:52:40 -07:00
Carlos Antonio da Silva
18099b0672
Merge pull request #11195 from yangchenyun/update_doc_for_define_callbacks
...
updated AS:Callbacks docs, variable namings
2013-06-30 17:26:06 -07:00
Carlos Antonio da Silva
1feab8dac5
Merge pull request #11205 from Gawyn/using-preferred-find_by-syntax-in-guides
...
Using preferred find_by syntax in guides
2013-06-30 17:23:57 -07:00
Carlos Antonio da Silva
683d7195c9
Merge pull request #11204 from Gawyn/find_by-triggers-after_find
...
Adding find_by in guide to methods that trigger after_find
2013-06-30 17:22:27 -07:00
Cristian Planas
93fd780a88
Using preferred find_by syntax in guides
2013-07-01 01:38:46 +02:00
Steven Yang
42a3817cd6
unified the param names across all callbacks manipulation methods
...
_ Rename the define_callbacks params to `names`
- in order to match the naming conventions for `get_callbacks` and `set_callbacks` at https://github.com/rails/rails/blob/master/activesupport/lib/active_support/callbacks.rb#L736-743
- `define_callbacks` just register names(events), not define the real callback functions.
- Rename the `reset_callbacks` params
2013-07-01 07:38:31 +08:00
Cristian Planas
7451c2f7cc
Adding find_by in guide to methods that trigger after_find
2013-07-01 01:27:44 +02:00
Carlos Antonio da Silva
51ed3fa638
Merge pull request #11192 from charliesome/extra-roflscale
...
Store a symbol directly inside DISPATCH_CACHE for additional roflscale
2013-06-30 15:55:44 -07:00
Steven Yang
6e583cdac3
fix typo in ActiveModel::Error docs [ci skip]
2013-06-30 18:38:29 -03:00
Carlos Antonio da Silva
9517aff899
Merge pull request #11196 from yangchenyun/remove_evals_in_am_callbacks
...
Remove evals from AM::Validations::Callbacks
2013-06-30 14:37:55 -07:00
Yves Senn
996f9b5873
Merge pull request #11186 from jetthoughts/synchronize_create_method_body
...
Synchronize PostController#create code from 5.6 to others sections in Getting Started guide.
2013-06-30 06:44:03 -07:00
Yves Senn
162cc66864
don't shadow through_scope
method name with local var.
2013-06-30 14:40:45 +02:00
Steven Yang
5fe43ffcfb
remove evals from AM::Validations::Callbacks
...
follow the same refactor at a63a964a5d1ed02cf0df1b1a33a96ed2a9fa987b
2013-06-30 18:47:55 +08:00
Paul Nikitochkin
bb8f0b401d
Synchronize PostController#create code from 5.6 to others sections. [ci skip]
...
Fixed `permit` using for comments.
2013-06-30 13:34:11 +03:00