Navigation Menu

Skip to content

Commit

Permalink
question methods return booleans rather than nils
Browse files Browse the repository at this point in the history
  • Loading branch information
calavera committed May 3, 2010
1 parent 683bc28 commit 0fcb641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/trinidad/web_app.rb
Expand Up @@ -35,12 +35,12 @@ def default_deployment_descriptor
end

def rack_servlet_configured?
web_xml && (web_xml.include?('<servlet-class>org.jruby.rack.RackServlet') ||
web_xml.include?('<filter-class>org.jruby.rack.RackFilter'))
!!(web_xml && (web_xml.include?('<servlet-class>org.jruby.rack.RackServlet') ||
web_xml.include?('<filter-class>org.jruby.rack.RackFilter')))
end

def rack_listener_configured?
web_xml && web_xml.include?("<listener-class>#{context_listener}")
!!(web_xml && web_xml.include?("<listener-class>#{context_listener}"))
end

def public_root
Expand Down

0 comments on commit 0fcb641

Please sign in to comment.