Module: SmoothChange::ActionController::Helper

Extended by:
ActiveSupport::Concern
Defined in:
lib/smooth_change/action_controller/helper.rb

Overview

Add helper methods to use SmoothChange in your Rails’s ActionControllers

Instance Method Summary collapse

Instance Method Details

#smooth_changeObject



15
16
17
# File 'lib/smooth_change/action_controller/helper.rb', line 15

def smooth_change
  @smooth_change ||= SmoothChange::ClientFeatureToggler.from_http_header(http_header_value)
end

#store_smooth_changeObject



11
12
13
# File 'lib/smooth_change/action_controller/helper.rb', line 11

def store_smooth_change
  SmoothChange::Current.smooth_change = smooth_change
end