Module: SimpleTeams

Defined in:
lib/simple_teams.rb,
lib/simple_teams/engine.rb,
lib/simple_teams/version.rb,
app/models/simple_teams/team.rb,
app/mailers/simple_teams/mailer.rb,
app/models/simple_teams/ability.rb,
app/models/simple_teams/invitation.rb,
app/models/simple_teams/membership.rb,
app/helpers/simple_teams/teams_helper.rb,
app/jobs/simple_teams/application_job.rb,
app/forms/simple_teams/invitation_form.rb,
app/forms/simple_teams/membership_form.rb,
app/models/simple_teams/application_record.rb,
app/helpers/simple_teams/application_helper.rb,
app/helpers/simple_teams/invitations_helper.rb,
app/helpers/simple_teams/memberships_helper.rb,
app/mailers/simple_teams/application_mailer.rb,
app/controllers/simple_teams/base_controller.rb,
app/controllers/simple_teams/teams_controller.rb,
app/forms/simple_teams/invitation_forms/create.rb,
app/forms/simple_teams/invitation_forms/update.rb,
app/controllers/simple_teams/admin/teams_controller.rb,
app/controllers/simple_teams/application_controller.rb,
app/controllers/simple_teams/invitations_controller.rb,
app/controllers/simple_teams/leave_teams_controller.rb,
app/controllers/simple_teams/memberships_controller.rb,
app/forms/simple_teams/invitation_forms/create_bulk.rb,
app/service_objects/simple_teams/leave_team_service.rb,
app/forms/simple_teams/invitation_forms/create_combo.rb,
app/notifications/simple_teams/invitation_notification.rb,
app/notifications/simple_teams/membership_notification.rb,
app/controllers/simple_teams/related_members_controller.rb,
app/service_objects/simple_teams/initialize_team_service.rb,
app/controllers/simple_teams/admin/invitations_controller.rb,
app/controllers/simple_teams/admin/memberships_controller.rb,
app/controllers/simple_teams/accept_invitations_controller.rb,
app/service_objects/simple_teams/accept_invitation_service.rb,
app/notifications/simple_teams/bulk_invitations_notification.rb,
app/notifications/simple_teams/memberships/left_notification.rb,
app/notifications/simple_teams/invitations/created_notification.rb,
app/notifications/simple_teams/invitations/updated_notification.rb,
app/notifications/simple_teams/memberships/updated_notification.rb,
app/notifications/simple_teams/invitations/accepted_notification.rb,
app/notifications/simple_teams/invitations/destroyed_notification.rb,
app/notifications/simple_teams/memberships/destroyed_notification.rb

Defined Under Namespace

Modules: ApplicationHelper, InvitationsHelper, MemberObject, MembershipsHelper, TeamObject, TeamsHelper Classes: Ability, AcceptInvitationService, AcceptInvitationsController, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, BaseController, BulkInvitationsNotification, Engine, InitializeTeamService, Invitation, InvitationForm, InvitationNotification, InvitationsController, LeaveTeamService, LeaveTeamsController, Mailer, Membership, MembershipForm, MembershipNotification, MembershipsController, RelatedMembersController, Team, TeamsController

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.layoutObject



19
20
21
# File 'lib/simple_teams/engine.rb', line 19

def self.layout
  (@@layout || "simple_teams/application")
end

.member_classObject



11
12
13
# File 'lib/simple_teams/engine.rb', line 11

def self.member_class
  (@@member_class || "User").constantize
end

.parent_controllerObject



15
16
17
# File 'lib/simple_teams/engine.rb', line 15

def self.parent_controller
  (@@parent_controller || "ApplicationController").constantize
end

.rolesObject



23
24
25
# File 'lib/simple_teams/engine.rb', line 23

def self.roles
  (@@roles || [:member, :administrator, :owner])
end