diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 11:43:23 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-28 11:43:23 -0800 |
commit | a2be6ce3eb94516a57c07c98f3cb19502b05cff1 (patch) | |
tree | 91610361db7cab6cdd5c37652fc3f37c01335286 /actionview/lib/action_view | |
parent | 2f9f699a2f6c6d470d2c639fe07d7850f6858c53 (diff) | |
download | rails-a2be6ce3eb94516a57c07c98f3cb19502b05cff1.tar.gz rails-a2be6ce3eb94516a57c07c98f3cb19502b05cff1.tar.bz2 rails-a2be6ce3eb94516a57c07c98f3cb19502b05cff1.zip |
Remove method named "hash"
We can't use the FixtureResolver as a hash key because it doesn't
implement `hash` correctly. This commit renames the method to "data"
(which is just as unfortunately named :( )
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/testing/resolvers.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionview/lib/action_view/testing/resolvers.rb b/actionview/lib/action_view/testing/resolvers.rb index 1fad08a689..d6203b95c5 100644 --- a/actionview/lib/action_view/testing/resolvers.rb +++ b/actionview/lib/action_view/testing/resolvers.rb @@ -8,13 +8,15 @@ module ActionView #:nodoc: # useful for testing extensions that have no way of knowing what the file # system will look like at runtime. class FixtureResolver < PathResolver - attr_reader :hash - def initialize(hash = {}, pattern = nil) super(pattern) @hash = hash end + def data + @hash + end + def to_s @hash.keys.join(", ") end |