Sha256: 7492d7936a1a14a987102149e9936f4c3a8109fc359e585e92938543731008ed
Contents?: true
Size: 360 Bytes
Versions: 4
Compression:
Stored size: 360 Bytes
Contents
module Icalia module Artanis class AccessToken < Resource def self.find(*args) a = super a.first if a.any? end def self.find_by(attributes = {}) raise "No attributes" unless attributes.any? a = where(attributes).limit(1).to_a return nil unless a.any? a.first end end end end
Version data entries
4 entries across 4 versions & 1 rubygems