Class: SmoothChange::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/smooth_change/current.rb

Overview

Thread safe Rails request store

Instance Method Summary collapse

Instance Method Details

#smooth_changeObject

override with default value



11
12
13
14
# File 'lib/smooth_change/current.rb', line 11

def smooth_change
  self.smooth_change = SmoothChange::ClientFeatureToggler.new unless attributes[:smooth_change]
  attributes[:smooth_change]
end