instance method
prefix_name_for_action
Ruby on Rails 3.0.20
Since v3.0.20Signature
prefix_name_for_action(as, action)
No documentation comment.
Parameters
-
asreq -
actionreq
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1312
def prefix_name_for_action(as, action)
if as
as.to_s
elsif !canonical_action?(action, @scope[:scope_level])
action.to_s
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1312
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Resources