Skip to content

Commit

Permalink
Removed ||= for boolean value check in @use_session_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Bouch committed Apr 5, 2012
1 parent dd6b764 commit 97d5639
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ariane.rb
Expand Up @@ -53,7 +53,7 @@ def session=(session)
@session = session
end

# Internal: Gets the request environment.
# Internal: Gets the user session hash
#
# Returns the session object
def session
Expand Down Expand Up @@ -140,7 +140,11 @@ def default_renderer=(renderer)
#
# Returns the current or default option.
def use_session_stack
@use_session_stack ||= false
if defined? @use_session_stack
return @user_session_stack
else
return false
end
end

# Public: Returns session stack setting
Expand Down

0 comments on commit 97d5639

Please sign in to comment.