Module: RocketShorts::Versioning::ClassMethods

Defined in:
lib/rocket_shorts/controller/versioning.rb

Instance Method Summary collapse

Instance Method Details

#version(version) ⇒ Object



11
12
13
14
15
# File 'lib/rocket_shorts/controller/versioning.rb', line 11

def version(version)
  version = version..version if version.is_a?(Integer)
  self._version_range = version
  before_filter :verify_api_version
end