Module: MuckInvites

Defined in:
lib/muck-invites/config.rb,
lib/muck-invites/engine.rb,
lib/muck-invites/exceptions.rb,
lib/muck-invites/models/invite.rb,
lib/muck-invites/models/invitee.rb,
lib/muck-invites/models/inviter.rb

Defined Under Namespace

Modules: Exceptions, Models Classes: Configuration, Engine

Class Method Summary collapse

Class Method Details

.configurationObject



3
4
5
6
# File 'lib/muck-invites/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-invites/config.rb', line 8

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