Revision bb3572ff
Added by Daniel Lobato Garcia over 8 years ago
app/views/api/v1/home/index.json.rabl | ||
---|---|---|
object false
|
||
child(:links => "links") do
|
||
|
||
# gather index methods of resources
|
||
index_method_description_apis = Apipie.app.resource_descriptions[Apipie.configuration.default_version].map do |name, resource_description|
|
||
index_method_description_apis = Apipie.app.resource_descriptions[Apipie.configuration.default_version]
|
||
.map do |name, resource_description|
|
||
if (description = Apipie.app["#{name}#index"])
|
||
description.method_apis_to_json.first
|
||
end
|
Also available in: Unified diff
Refs #3809 - Stabby lambda syntax for oneliners
I started by spotting log.rb which didn't have a lambda wrapping its
default scope, as needed by Rails 4. Since the style guide and most
Rails 4 documents used the stabby lambda, I turned on the cop so that we
use it everywhere there's a oneliner lambda.