Browse files

Remove puts

  • Loading branch information...
1 parent 5f39fbb commit 1974e59f6b8d4a6a3265547e51dd6ee826b1a3b7 @radar radar committed Feb 25, 2009
Showing with 1 addition and 5 deletions.
  1. +1 −5 leaves/logga/controller.rb
View
6 leaves/logga/controller.rb
@@ -125,8 +125,6 @@ def for_sql(string)
def find_constant(stem, sender, reply_to, name, entry=nil, opts={})
# Find by specific name.
- puts name.inspect
- puts Constant.find_by_name("Array").inspect
constants = Constant.find_all_by_name(name, :include => "entries")
# Find by name beginning with <blah>.
constants = Constant.all(:conditions => ["name LIKE ?", name + "%"], :include => "entries") if constants.empty?
@@ -135,7 +133,7 @@ def find_constant(stem, sender, reply_to, name, entry=nil, opts={})
if constants.size > 1
# Narrow it down to the constants that only contain the entry we are looking for.
if !entry.nil?
- constants = constants.select { |constant| puts !constant.entries.find_by_name(entry).nil? }
+ constants = constants.select { |constant| !constant.entries.find_by_name(entry).nil? }
return [constants, constants.size]
else
display_constants(stem, sender, reply_to, constants, opts={})
@@ -179,7 +177,6 @@ def find_method(stem, sender, reply_to, name, constant=nil, opts={})
methods = methods.select { |m| constants.include?(m.constant) }
end
count = 0
- puts methods.inspect
if methods.size == 1
method = methods.first
stem.message("#{opts[:directed_at] ? opts[:directed_at] + ":" : ''} (#{method.constant.name}) #{method.name} #{method.url}", reply_to)
@@ -196,7 +193,6 @@ def find_method(stem, sender, reply_to, name, constant=nil, opts={})
def display_constants(stem, sender, reply_to, constants, opts={})
count = 0
- puts constants.size
if constants.size == 1
constant = constants.first
message = "#{opts[:directed_at] ? opts[:directed_at] + ":" : ''} #{constant.name} #{constant.url}"

0 comments on commit 1974e59

Please sign in to comment.