class method
self.new
Ruby on Rails 6.0.6
Since v3.0.20Signature
self.new(hash = {}, pattern = nil)
No documentation comment.
Parameters
-
hashopt = {} -
patternopt = nil
Source
# File actionview/lib/action_view/testing/resolvers.rb, line 11
def initialize(hash = {}, pattern = nil)
super("")
if pattern
ActiveSupport::Deprecation.warn "Specifying a custom path for #{self.class} is deprecated. Implement a custom Resolver subclass instead."
@pattern = pattern
end
@hash = hash
@path = ""
end
Defined in actionview/lib/action_view/testing/resolvers.rb line 11
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::FixtureResolver