Method: Ubiquitously::Support::ActiveRecord::ClassMethods#ubiquitous

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

#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