Method: ActionDispatch::Routing::UrlFor#full_url_for
- Defined in:
- actionpack/lib/action_dispatch/routing/url_for.rb
#full_url_for(options = nil) ⇒ Object
:nodoc:
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'actionpack/lib/action_dispatch/routing/url_for.rb', line 182 def full_url_for( = nil) # :nodoc: case when nil _routes.url_for(.symbolize_keys) when Hash, ActionController::Parameters route_name = .delete :use_route = .to_h.symbolize_keys.reverse_merge!() _routes.url_for(, route_name) when String when Symbol HelperMethodBuilder.url.handle_string_call self, when Array components = .dup polymorphic_url(components, components.) when Class HelperMethodBuilder.url.handle_class_call self, else HelperMethodBuilder.url.handle_model_call self, end end |