versioncake 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versioncake (0.3.0)
4
+ versioncake (0.3.1)
5
5
  actionpack (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
  railties (>= 3.0)
data/README.md CHANGED
@@ -48,7 +48,7 @@ class PostsController < ApplicationController
48
48
  @posts = Post.scoped
49
49
 
50
50
  # version 3 or greated supports embedding post comments
51
- if requested_version >= 3
51
+ if derived_version >= 3
52
52
  @posts = @posts.includes(:comments)
53
53
  end
54
54
  end
@@ -199,7 +199,7 @@ def index
199
199
  @posts = Post.scoped
200
200
 
201
201
  # version 3 or greated supports embedding post comments
202
- if requested_version >= 3
202
+ if derived_version >= 3
203
203
  @posts = @posts.includes(:comments)
204
204
  end
205
205
  end
@@ -18,7 +18,7 @@ module ActionController #:nodoc:
18
18
  @derived_version = ActionView::Template::Versions.latest_version
19
19
  elsif ActionView::Template::Versions.supports_version? @requested_version
20
20
  @derived_version = @requested_version
21
- elsif requested_version > ActionView::Template::Versions.latest_version
21
+ elsif @requested_version > ActionView::Template::Versions.latest_version
22
22
  raise ActionController::RoutingError.new("No route match for version")
23
23
  else
24
24
  raise ActionController::RoutingError.new("Version is deprecated")
@@ -1,3 +1,3 @@
1
1
  module VersionCake
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versioncake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: