Sha256: 030944b324168802325189e67c59ef9df1a86b0f86973287abfe33e8402d3a75
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
module ResourceHelper def restful_actions [ :index, :show, :create, :update, :delete ] end def restful_collection_actions [ :index, :create ] end def restful_member_actions [ :show, :update, :delete ] end def rest_http_dictionary { :index => :get, :show => :get, :create => :post, :update => :put, :delete => :delete } end def http_methods [ :get, :post, :put, :patch, :delete ] end def mime_type_dictionary { :json => 'application/json', :yaml => 'application/x-yaml' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apitizer-0.0.3 | spec/support/resource_helper.rb |
apitizer-0.0.2 | spec/support/resource_helper.rb |