Class: Gemgento::UserGroup

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/gemgento/user_group.rb

Overview

Author:

  • Gemgento LLC

Class Method Summary collapse

Class Method Details

.indexObject



5
6
7
8
9
10
11
# File 'app/models/gemgento/user_group.rb', line 5

def self.index
  if UserGroup.all.size == 0
    API::SOAP::Customer::Customer.fetch_all_user_groups
  end

  UserGroup.all
end