Sha256: d42e055091b4393b88fc791b9ec4c314d2d59f7aceb2c8ebcea127a900d17bf2
Contents?: true
Size: 740 Bytes
Versions: 6
Compression:
Stored size: 740 Bytes
Contents
module RemoteResource module REST extend ActiveSupport::Concern ACTIONS = [:get, :put, :patch, :post] module ClassMethods RemoteResource::REST::ACTIONS.each do |action| define_method action do |*args| attributes = args[0] || {} connection_options = args[1] || {} RemoteResource::Request.new(self, action, attributes, connection_options).perform end end end RemoteResource::REST::ACTIONS.each do |action| define_method action do |*args| attributes = args[0] || {} connection_options = args[1] || {} RemoteResource::Request.new(self, action, attributes, connection_options).perform end end end end
Version data entries
6 entries across 6 versions & 1 rubygems