Module: MuckGroups

Defined in:
lib/muck-groups/models/group.rb,
lib/muck-groups.rb,
lib/muck-groups/config.rb,
lib/muck-groups/engine.rb,
lib/muck-groups/models/membership.rb,
lib/muck-groups/share/group_methods.rb,
lib/muck-groups/mailers/groups_mailer.rb,
lib/muck-groups/models/membership_request.rb

Overview

include MuckGroups::Models::MuckMembershipRequest

Defined Under Namespace

Modules: GroupMethods, Mailers, Models Classes: Configuration, Engine

Constant Summary collapse

DELETED =
-1
INVISIBLE =
0
PRIVATE =
1
PUBLIC =
2

Class Method Summary collapse

Class Method Details

.configurationObject



3
4
5
6
# File 'lib/muck-groups/config.rb', line 3

def self.configuration
  # In case the user doesn't setup a configure block we can always return default settings:
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
11
# File 'lib/muck-groups/config.rb', line 8

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end