tubular 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tubular/builder.rb +16 -0
- data/lib/tubular/version.rb +1 -1
- metadata +1 -1
data/lib/tubular/builder.rb
CHANGED
@@ -28,6 +28,22 @@ module Tubular
|
|
28
28
|
columns << build_column(*args, &block)
|
29
29
|
end
|
30
30
|
|
31
|
+
def method_missing(m, *args, &block)
|
32
|
+
if context.respond_to?(m)
|
33
|
+
context.send(m, *args, &block)
|
34
|
+
else
|
35
|
+
super
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def respond_to?(m)
|
40
|
+
if context.respond_to?(m)
|
41
|
+
true
|
42
|
+
else
|
43
|
+
super
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
31
47
|
protected
|
32
48
|
|
33
49
|
attr_reader :context, :collection, :columns, :table_html
|
data/lib/tubular/version.rb
CHANGED