grapple 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/grapple/helpers/table_helper.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b42d08c946b40036d8cda0fb17ad4c3b82ec3b2c
|
|
4
|
+
data.tar.gz: c0882e3d2d3767e26c473bb0f062c43a8cf86de5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69cc209aaf685788d49e6616cd8191c28b36695befe0cbaea11b6ae65e915cc3400d157962b570a4965e0d2be0185c8b2432c312d1508ee5f81007c0dfad4ed5
|
|
7
|
+
data.tar.gz: ab70392b8d0c8ff6b7a9aac92dc99550a3ac3cc322f073310c7fe7dc32ae55e8b4056239a5d44e24bf3bdcbd3dc5e476c155cea4e610da683435fd5367958232
|
|
@@ -9,7 +9,10 @@ module Grapple
|
|
|
9
9
|
options = args[0] || {}
|
|
10
10
|
table_html_attributes = options[:html] || {}
|
|
11
11
|
builder_class = options[:builder] || @@builder
|
|
12
|
-
|
|
12
|
+
# params might not be defined (being called from a mailer)
|
|
13
|
+
# HACK: "defined? params" is returning method but when it gets called the method is not defined
|
|
14
|
+
request_params = params() rescue {}
|
|
15
|
+
builder = builder_class.new(self, columns, records, request_params, options)
|
|
13
16
|
output = capture(builder, &block)
|
|
14
17
|
(builder.before_table + builder.table(output, table_html_attributes) + builder.after_table).html_safe
|
|
15
18
|
end
|