Sha256: f707be06d2487d467468f32ea56d247b0fce46290b2bb91267e82f78a210fe67
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
module Ubiquitously module Support module ActiveRecord def self.included(base) base.extend ClassMethods end module ClassMethods attr_accessor :ubiquitously_accounts def ubiquitous(*args) self.ubiquitously_accounts = args.flatten.map(&:to_s).uniq.map do |service| "Ubiquitously::#{service.camelize}::Account".constantize end end end module InstanceMethods def ubiquitously @ubiquitously ||= Ubiquitously::User.new end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/support/active_record.rb |