module Douglas

Constants

VERSION

Public Class Methods

the_stamper() click to toggle source
# File lib/douglas.rb, line 7
def the_stamper
  RequestStore.store[:the_stamper]
end
the_stamper=(user) click to toggle source
# File lib/douglas.rb, line 11
def the_stamper= user
  RequestStore.store[:the_stamper] = user
end
with_stamper(user) { || ... } click to toggle source
# File lib/douglas.rb, line 15
def with_stamper user
  return unless block_given?

  self.the_stamper = user
  yield
  self.the_stamper = nil
end