lib/versioncake/strategies/query_parameter_strategy.rb in versioncake-1.3.0 vs lib/versioncake/strategies/query_parameter_strategy.rb in versioncake-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
module VersionCake
class QueryParameterStrategy < ExtractionStrategy
def execute(request)
- if request.query_parameters.key? @@version_string.to_sym
- request.query_parameters[@@version_string.to_sym]
+ if request.query_parameters.key? version_key.to_sym
+ request.query_parameters[version_key.to_sym].to_s
end
end
end
end