Exception: Shamu::Features::RetiredToggleError
- Defined in:
- lib/shamu/features/errors.rb
Overview
An feature toggle was checked that has been marked as retired.
Instance Attribute Summary collapse
-
#toggle ⇒ Toggle
The retired toggle.
Instance Method Summary collapse
-
#initialize(toggle) ⇒ RetiredToggleError
constructor
A new instance of RetiredToggleError.
Constructor Details
#initialize(toggle) ⇒ RetiredToggleError
Returns a new instance of RetiredToggleError.
22 23 24 25 26 |
# File 'lib/shamu/features/errors.rb', line 22 def initialize( toggle ) @toggle = toggle super translate( :retired_toggle_checked, name: toggle.name, retire_at: toggle.retire_at.to_s ) end |
Instance Attribute Details
#toggle ⇒ Toggle
Returns the retired toggle.
20 21 22 |
# File 'lib/shamu/features/errors.rb', line 20 def toggle @toggle end |