Sha256: c88ba15134a24b2a87d6a23796e8cdd154e1b1c16b05a9f44397ee570b324c0b

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

module Journey
  class Resource < ActiveResource::Base

    def self.find(*arguments)
      scope   = arguments.slice!(0)

      self.embeds ||= []
      options = arguments.slice!(0) || {}
      options.deep_merge!(params: { embed: self.embeds })

      super *([scope, options] + arguments)
    end

  end
end

require 'journey/resource/api'
require 'journey/resource/attribute_loading'
require 'journey/resource/enums'
require 'journey/resource/queries'
require 'journey/resource/search'
require 'journey/resource/embed'

class Journey::Resource
  include API
  include Queries
  include Enums
  include AttributeLoading
  include Search
  include Embed
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
embark-journey-0.0.9 lib/journey/resource.rb
embark-journey-0.0.8 lib/journey/resource.rb
embark-journey-0.0.7 lib/journey/resource.rb