class UrlHelperTest::FakeParams
Public Class Methods
new(permitted = true)
click to toggle source
# File actionview/test/template/url_helper_test.rb, line 230 def initialize(permitted = true) @permitted = permitted end
Public Instance Methods
permitted?()
click to toggle source
# File actionview/test/template/url_helper_test.rb, line 234 def permitted? @permitted end
to_h()
click to toggle source
# File actionview/test/template/url_helper_test.rb, line 238 def to_h if permitted? { foo: :bar, baz: "quux" } else raise ArgumentError end end