Skip to content

Commit

Permalink
Add a nice comment about the BINDING_REQUIRED constant
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Dec 27, 2008
1 parent 3bc9642 commit 8f49895
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nested_layouts.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module ActionView #:nodoc:
module Helpers #:nodoc:
module NestedLayoutsHelper
# Binding is only required if we're running less than Rails 2.2
BINDING_REQUIRED = !!((Object.const_defined?(:Rails) && Rails.respond_to?(:version) ?
Rails.version : RAILS_GEM_VERSION) < '2.2.0')

Expand Down

0 comments on commit 8f49895

Please sign in to comment.