Method: Jets::Router::MethodCreator::Code#method_name_leaf

Defined in:
lib/jets/router/method_creator/code.rb

#method_name_leafObject

The method_name_leaf is used to generate method names. Can be nil because sometimes the name is fully acquired from the scope.



45
46
47
48
49
# File 'lib/jets/router/method_creator/code.rb', line 45

def method_name_leaf
  unless %w[resource resources].include?(@scope.from.to_s) && @options[:from_scope]
    @controller
  end
end