public
Fork of tablatom/hobo
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/drnic/hobo.git
Search Repo:
column_names instead of cols; and actually using the variable instead of 
recalculating
drnic (author)
Sat May 17 07:04:28 -0700 2008
commit  e498b6538181e2824eab80b1250b440a27561182
tree    4cc35d0250d5bfea4c6f6f985e70c54e04232077
parent  42f79307691ce4cc6cd02a599912424558dee0ec
...
129
130
131
132
133
 
 
134
135
136
137
138
139
140
141
 
 
142
143
144
...
230
231
232
233
234
 
 
235
236
237
...
129
130
131
 
 
132
133
134
135
136
137
138
139
 
 
140
141
142
143
144
...
230
231
232
 
 
233
234
235
236
237
0
@@ -129,16 +129,16 @@
0
 
0
       def name_attribute
0
         @name_attribute ||= begin
0
- cols = columns.*.name
0
- NAME_FIELD_GUESS.detect {|f| f.in? columns.*.name }
0
+ column_names = columns.*.name
0
+ NAME_FIELD_GUESS.detect {|f| f.in? column_names }
0
                             end
0
       end
0
 
0
 
0
       def primary_content_attribute
0
         @primary_content_attribute ||= begin
0
- cols = columns.*.name
0
- PRIMARY_CONTENT_GUESS.detect {|f| f.in? columns.*.name }
0
+ column_names = columns.*.name
0
+ PRIMARY_CONTENT_GUESS.detect {|f| f.in? column_names }
0
                                        end
0
       end
0
 
0
@@ -230,8 +230,8 @@
0
 
0
 
0
       def search_columns
0
- cols = columns.*.name
0
- SEARCH_COLUMNS_GUESS.select{|c| c.in?(cols) }
0
+ column_names = columns.*.name
0
+ SEARCH_COLUMNS_GUESS.select{|c| c.in?(column_names) }
0
       end
0
 
0
 

Comments

    No one has commented yet.