module Flipper::Api::Action::FeatureNameFromRoute

Private Instance Methods

feature_name() click to toggle source
# File lib/flipper/api/action.rb, line 10
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