app/controllers/api/base_controller/renderer.rb
#
# Helper proc to render a collection
#
Helper proc to render a collection
Helper proc to render a collection
def expand_resource_custom_actions(resource, json, type, physical_attrs)
        return unless render_actions(physical_attrs) && collection_config.custom_actions?(type)
        href = json.attributes!["href"]
        json.actions do |js|
          resource_custom_action_names(resource).each do |action|
            add_child js, "name" => action, "method" => :post, "href" => href
          end
        end
      end
def expand_resource_custom_actions ( resource , json , type , physical_attrs ) return unless render_actions ( physical_attrs ) && collection_config . custom_actions? ( type ) href = json . attributes! [ "href" ] json . actions do | js | resource_custom_action_names ( resource ) . each do | action | add_child js , "name" => action , "method" => :post , "href" => href end end end
Helper proc to render a collection
Helper proc to render a collection
resource
<not_specific>
json
<not_specific>
type
<not_specific>
physical_attrs
<not_specific>