Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Review response: Rollback GenericFeatureButton#initialize implementation
Browse files Browse the repository at this point in the history
Attila Vecerek committed Feb 24, 2017
1 parent 164ce76 commit 9cc0497
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -3,8 +3,7 @@ class ApplicationHelper::Button::GenericFeatureButton < ApplicationHelper::Butto

def initialize(view_context, view_binding, instance_data, props)
super
# TODO: use #dig when ruby2.2 is no longer supported
@feature = props.fetch_path(:options, :feature)
@feature = props[:options][:feature]
end

def visible?

0 comments on commit 9cc0497

Please sign in to comment.