module Flipper::UI::Action::FeatureNameFromRoute

Private Instance Methods

feature_name() click to toggle source
# File lib/flipper/ui/action.rb, line 11
def feature_name
  @feature_name ||= begin
    match = request.path_info.match(self.class.route_regex)
    match ? Rack::Utils.unescape(match[:feature_name]) : nil
  end
end