desktop-finder 0.0.1.8 → 0.0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/desktop/finder/version.rb +1 -1
- data/lib/desktop/finder.rb +2 -6
- metadata +1 -1
data/lib/desktop/finder.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
require "desktop/finder/version"
|
2
2
|
|
3
3
|
module Desktop
|
4
|
-
|
5
|
-
|
6
|
-
class << self
|
7
|
-
|
4
|
+
module Finder
|
8
5
|
def Finder.test
|
9
6
|
puts '-----------test finder gem--------------'
|
10
7
|
end
|
11
8
|
|
12
|
-
def create(params, simple=false, form=nil)
|
9
|
+
def Finder.create(params, simple=false, form=nil)
|
13
10
|
puts '---------------finder create--------------------'
|
14
11
|
record = Kernel.const_get(params[:controller].classify).new.attributes
|
15
12
|
options = record.each_key.collect{|key|
|
@@ -89,6 +86,5 @@ module Desktop
|
|
89
86
|
"<label class='#{options[:class]}'>#{label}</label>"
|
90
87
|
end
|
91
88
|
|
92
|
-
end
|
93
89
|
end
|
94
90
|
end
|