Module: Ownership

Defined in:
lib/ownership.rb,
lib/ownership/rollbar.rb,
lib/ownership/version.rb,
lib/ownership/honeybadger.rb,
lib/ownership/job_methods.rb,
lib/ownership/global_methods.rb,
lib/ownership/controller_methods.rb

Defined Under Namespace

Modules: ControllerMethods, GlobalMethods, Honeybadger, JobMethods, Rollbar

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.around_changeObject

Returns the value of attribute around_change.


9
10
11
# File 'lib/ownership.rb', line 9

def around_change
  @around_change
end

.default_ownerObject

Returns the value of attribute default_owner.


8
9
10
# File 'lib/ownership.rb', line 8

def default_owner
  @default_owner
end

Class Method Details

.ownerObject


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

def owner
  Thread.current[:ownership_owner] || default_owner
end