lib/versioncake/strategies/request_parameter_strategy.rb in versioncake-1.3.0 vs lib/versioncake/strategies/request_parameter_strategy.rb in versioncake-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
module VersionCake
class RequestParameterStrategy < ExtractionStrategy
def execute(request)
- if request.request_parameters.has_key? @@version_string.to_sym
- request.request_parameters[@@version_string.to_sym].to_i
+ if request.request_parameters.has_key? version_key.to_sym
+ request.request_parameters[version_key.to_sym]
end
end
end
end