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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbc0c19f5351b685a28eb3cccbf18aa71418fd0d
4
- data.tar.gz: f7a5a428ead03812a503ec79c04cf8eaae98fcf9
3
+ metadata.gz: b42d08c946b40036d8cda0fb17ad4c3b82ec3b2c
4
+ data.tar.gz: c0882e3d2d3767e26c473bb0f062c43a8cf86de5
5
5
  SHA512:
6
- metadata.gz: 86a7d8935dfff0004548900811f161d8e44329f3c97cc4092f989b16f346b2599e584dce0ee1dc4aead5e6b5d616addd5a8b9ee32175bcb9f082970fc0ab3186
7
- data.tar.gz: f5f9b9bc3512489b545230d45bdf574690ecd1aa10902505cf9f24b96433021c1e674a71f38e6acb942402434786e9449e6e7bb56d13b5fb4a47b7f0f5c72ff1
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
- builder = builder_class.new(self, columns, records, params, options)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grapple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Potocko