1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/test/support/mock_controller.rb

25 lines
425 B
Ruby
Raw Normal View History

2009-12-08 08:48:31 -05:00
class MockController
attr_accessor :action_name
def _routes
2010-04-22 08:33:23 -04:00
self
end
def action_name
2011-12-17 05:57:43 -05:00
defined?(@action_name) ? @action_name : "edit"
end
2009-12-08 08:48:31 -05:00
def url_for(*args)
"http://example.com"
end
def url_helpers
self
end
def hash_for_user_path(*args); end
def hash_for_validating_user_path(*args); end
def hash_for_other_validating_user_path(*args); end
def hash_for_users_path(*args); end
2009-12-08 08:48:31 -05:00
end