1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

19 commits

Author SHA1 Message Date
Matthew Draper
87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590, reversing
changes made to afb66a5a59.
2017-07-02 02:15:17 +09:30
Matthew Draper
3420a14590 Merge pull request #29540 from kirs/rubocop-frozen-string
Enforce frozen string in Rubocop
2017-07-02 01:11:50 +09:30
Kir Shatrov
cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
Kir Shatrov
da895edf2e Fallback Parameters#to_s to Hash#to_s
Fixes https://github.com/rails/rails/issues/29617
2017-06-30 17:29:13 +03:00
Rafael Mendonça França
681277e53b
Fix test that was asserting the wrong thing 2017-03-21 16:50:35 -04:00
T.J. Schuck
26dcd7f7ee Tests for delegated public methods on AC::Parameters 2017-03-07 19:30:17 -05:00
Rafael Mendonça França
c396a8c991
Remove deprecated comparing support with ActionController::Parameters 2016-10-10 00:02:52 -03:00
Rafael Mendonça França
55f9b8129a
Add three new rubocop rules
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces

Fix all violations in the repository.
2016-08-16 04:30:11 -03:00
Xavier Noria
35b3de8021 applies new string literal convention in actionpack/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 18:54:50 +02:00
Sean Griffin
5cd2beb013 Add ActionController::Parameters#dig
This method will only be added when used with Ruby 2.3.0 or greater.
This method has the same behavior as `Hash#dig`, except it will convert
hashes to `ActionController::Parameters`, similar to `#[]` and `#fetch`.
2016-03-09 09:49:23 -07:00
Prathamesh Sonpatki
5f59c10471 Show permitted flag in the output of AC::Parameters#inspect
- Fixes #23822.
2016-02-24 13:55:37 +05:30
Benjamin Quorning
30440363c0 Deprecate AC::Parameters#== with a Hash 2016-02-19 09:18:08 +01:00
Benjamin Quorning
08fd9f4f11 Fix AC::Parameters#== with other AC::Parameters
Creating a protected getter method for `@parameters`.
2016-02-19 09:18:08 +01:00
Benjamin Quorning
9d2ea7f623 Tests for AC::Parameters#== 2016-02-19 09:18:08 +01:00
Benjamin Quorning
a623442623 Implement ActionController::Parameters#inspect
Now that AC::Parameters is no longer a Hash, it shouldn't look like a hash.
2016-02-17 14:01:14 +01:00
Jon Moss
627f736cc0 Fix ActionController::Parameters#== bug
See bug #21032.
2016-01-21 17:28:18 -05:00
claudiob
2228860364 AC::Parameters#at_json: restore Rails 4.2’s value
Fixes #23026

See discussion at #23026
2016-01-12 10:27:29 -08:00
Prem Sichanugrist
3591dd59e0 Fix failing test on several methods on Parameter
* `each`
* `each_pair`
* `delete`
* `select!`
2014-08-18 20:42:46 -04:00
Prem Sichanugrist
0663e8f179 Seperate Parameters accessors and mutators tests 2014-08-18 20:42:46 -04:00