Skip to content

Commit

Permalink
Merge pull request #55 from bwillis/use-memoized-lookup-context
Browse files Browse the repository at this point in the history
Use memorized version of lookup context
  • Loading branch information
bwillis authored Jun 22, 2016
2 parents da0aa8d + 6cc2fa8 commit 288dfb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/versioncake/controller_additions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def configure_rails_view_versioning(version_context)

if version_context.result == :no_version &&
VersionCake.config.missing_version_use_unversioned_template
@_lookup_context.versions = nil
lookup_context.versions = nil
else
@_lookup_context.versions = version_context.available_versions.map { |n| :"v#{n}" }
lookup_context.versions = version_context.available_versions.map { |n| :"v#{n}" }
end
end

Expand Down

0 comments on commit 288dfb4

Please sign in to comment.