Method: Togglefy.update
- Defined in:
- lib/togglefy.rb
.update(identifier, **params) ⇒ Feature Also known as: update_feature
Note:
All parameters but the first (identifier) should be keyword arguments.
Updates an existing feature.
180 181 182 183 184 |
# File 'lib/togglefy.rb', line 180 def self.update(identifier, **params) FeatureManager.new(identifier).update(**params) rescue ActiveRecord::RecordNotFound raise Togglefy::FeatureNotFound, "Couldn't find Togglefy::Feature with identifier '#{identifier}'" end |