Module: VersionCake::ControllerAdditions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/versioncake/controller_additions.rb
Instance Attribute Summary collapse
-
#derived_version ⇒ Object
The requested version by a client or if it’s nil the latest or default version configured.
-
#is_latest_version ⇒ Object
A boolean check to determine if the latest version is requested.
-
#requested_version ⇒ Object
The explicit version requested by a client, this may not be the rendered version and may also be nil.
Instance Attribute Details
#derived_version ⇒ Object
The requested version by a client or if it’s nil the latest or default version configured.
16 17 18 |
# File 'lib/versioncake/controller_additions.rb', line 16 def derived_version @derived_version end |
#is_latest_version ⇒ Object
A boolean check to determine if the latest version is requested.
12 13 14 |
# File 'lib/versioncake/controller_additions.rb', line 12 def is_latest_version @is_latest_version end |
#requested_version ⇒ Object
The explicit version requested by a client, this may not be the rendered version and may also be nil.
9 10 11 |
# File 'lib/versioncake/controller_additions.rb', line 9 def requested_version @requested_version end |