Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix it?

  • Loading branch information...
commit 75e6e5b6cfefc0ab92eaa7547b7f0fbcc7048976 1 parent 653355b
Ryan Bigg radar authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 leaves/logga/controller.rb
4 leaves/logga/controller.rb
@@ -128,7 +128,6 @@ def find_constant(stem, sender, reply_to, name, entry=nil, opts={})
128 128 puts name.inspect
129 129 puts Constant.find_by_name("Array").inspect
130 130 constants = Constant.find_all_by_name(name)
131   - puts constants.inspect
132 131 # Find by name beginning with <blah>.
133 132 constants = Constant.all(:conditions => ["name LIKE ?", name + "%"]) if constants.empty?
134 133 # Find by fuzzy.
@@ -136,7 +135,7 @@ def find_constant(stem, sender, reply_to, name, entry=nil, opts={})
136 135 if constants.size > 1
137 136 # Narrow it down to the constants that only contain the entry we are looking for.
138 137 if !entry.nil?
139   - constants = constants.select { |constant| !constant.entries.find_by_name(entry).nil? }
  138 + constants = constants.select { |constant| puts constant.entries.inspect; !constant.entries.find_by_name(entry).nil? }
140 139 return [constants, constants.size]
141 140 else
142 141 display_constants(stem, sender, reply_to, constants, opts={})
@@ -177,7 +176,6 @@ def find_method(stem, sender, reply_to, name, constant=nil, opts={})
177 176 methods = Entry.find_by_sql("select * from entries where name LIKE '%#{for_sql(name.split("").join("%"))}%'") if methods.empty?
178 177
179 178 if constant
180   - puts "CONSTANT SPECIFI"
181 179 methods = methods.select { |m| constants.include?(m.constant) }
182 180 end
183 181 count = 0

0 comments on commit 75e6e5b

Please sign in to comment.
Something went wrong with that request. Please try again.