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
405 B
Ruby
Raw Normal View History

2009-12-08 08:48:31 -05:00
class MockController
2011-12-18 13:42:56 -05:00
attr_writer :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_options
{}
end
def hash_for_user_path(*); end
def hash_for_validating_user_path(*); end
def hash_for_other_validating_user_path(*); end
def hash_for_users_path(*); end
2009-12-08 08:48:31 -05:00
end