Module: Ubiquitously::Support::ActiveRecord::ClassMethods

Defined in:
lib/ubiquitously/support/active_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ubiquitously_accountsObject

Returns the value of attribute ubiquitously_accounts.



9
10
11
# File 'lib/ubiquitously/support/active_record.rb', line 9

def ubiquitously_accounts
  @ubiquitously_accounts
end

Instance Method Details

#ubiquitous(*args) ⇒ Object



11
12
13
14
15
# File 'lib/ubiquitously/support/active_record.rb', line 11

def ubiquitous(*args)
  self.ubiquitously_accounts = args.flatten.map(&:to_s).uniq.map do |service|
    "Ubiquitously::#{service.camelize}::Account".constantize
  end
end