Commit Graph

38508 Commits

Author SHA1 Message Date
Rafael Mendonça França
7f35c40902 Merge pull request #11229 from neerajdotname/deprecated-default-scope
calling default_scope without a proc will raise ArgumentError
2013-07-01 19:40:42 -07:00
Neeraj Singh
71db2420a1 calling default_scope without a proc will raise ArgumentError
Calling default_scope without a proc will now raise `ArgumentError`.
2013-07-02 08:07:33 +05:30
Rafael Mendonça França
aa3ff85f47 Merge pull request #11230 from frodsan/remove_deprecated_clear_stale_cached_connections_method
Remove AR::Connection#clear_stale_cached_connections! deprecated method
2013-07-01 19:33:12 -07:00
Rafael Mendonça França
1502667063 Merge pull request #11231 from neerajdotname/deprecated-type-cast-code
Removed deprecated method type_cast_code from Column
2013-07-01 19:30:43 -07:00
Francesco Rodriguez
e7e49a0734 Remove deprecated AR::Connection#clear_stale_cached_connections! method 2013-07-01 21:12:51 -05:00
Neeraj Singh
cfc54e417d Removed deprecated method type_cast_code from Column 2013-07-02 07:37:51 +05:30
Carlos Antonio da Silva
f62fb985b6 Remove deprecated Proc#bind with no replacement. 2013-07-01 22:38:28 -03:00
Carlos Antonio da Silva
1c06bd17a9 Remove deprecated Array#uniq_by and Array#uniq_by!
Use native Array#uniq and Array#uniq! instead.
2013-07-01 22:33:42 -03:00
Carlos Antonio da Silva
cad3a13086 Remove deprecated AS::BasicObject, use AS::ProxyObject instead 2013-07-01 22:26:54 -03:00
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