dtb 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 11f3bb28db8a362f2965bd97ceb195a4227b8370c4825bf41178d0147fb9e797
4
+ data.tar.gz: 19ac52baaceb47c289f75607a7e37586d16526992af8482d37222fa9d3164a36
5
+ SHA512:
6
+ metadata.gz: b502f8d3de872c1eb4292d601041fa01a4d80a142aa275162618cc2c94c5daddc1224a49df9f67dee3ea629fbe2951de2221724155091be22080b7d5bcf580fb
7
+ data.tar.gz: b63ddc9dc45706edbdefe52020ab454058e0a42cae0ea64667bf5f52b4993f986deaeff56304bf32a001890f199b8497e1f68bed7bbbafd28e9bc12ed77c7f57
@@ -0,0 +1,31 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build + Publish
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - name: Set up Ruby
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: 3.3
19
+ bundler-cache: true
20
+ - name: Set up RubyGems credentials
21
+ run: |
22
+ mkdir -p $HOME/.gem
23
+ touch $HOME/.gem/credentials
24
+ chmod 0600 $HOME/.gem/credentials
25
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
26
+ env:
27
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
28
+ - name: Build and Publish to RubyGems
29
+ run: |
30
+ bundle exec rake build
31
+ gem push pkg/*.gem
@@ -0,0 +1,20 @@
1
+ name: Ruby
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version: ["3.0", "3.1", "3.2", "3.3"]
11
+ name: "Tests on Ruby ${{ matrix.ruby }}"
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Ruby
15
+ uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby-version }}
18
+ bundler-cache: true
19
+ - name: Test and lint
20
+ run: bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/.standard.yml ADDED
@@ -0,0 +1 @@
1
+ ruby_version: 3.0
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --plugin activesupport-concern
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at foca@foca.io. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in dtb.gemspec
6
+ gemspec
7
+
8
+ # Development/test gems.
9
+ gem "debug"
10
+ gem "rake"
11
+ gem "minitest"
12
+ gem "standard"
13
+
14
+ # Documentation gems.
15
+ gem "yard"
16
+ gem "yard-activesupport-concern", "~> 0.0.1"
data/Gemfile.lock ADDED
@@ -0,0 +1,169 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dtb (1.0.0.rc1)
5
+ activemodel (>= 4.2, < 8.0)
6
+ activesupport (>= 4.2, < 8.0)
7
+ i18n
8
+ rack
9
+ railties (>= 4.2, < 8.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actionpack (7.1.3)
15
+ actionview (= 7.1.3)
16
+ activesupport (= 7.1.3)
17
+ nokogiri (>= 1.8.5)
18
+ racc
19
+ rack (>= 2.2.4)
20
+ rack-session (>= 1.0.1)
21
+ rack-test (>= 0.6.3)
22
+ rails-dom-testing (~> 2.2)
23
+ rails-html-sanitizer (~> 1.6)
24
+ actionview (7.1.3)
25
+ activesupport (= 7.1.3)
26
+ builder (~> 3.1)
27
+ erubi (~> 1.11)
28
+ rails-dom-testing (~> 2.2)
29
+ rails-html-sanitizer (~> 1.6)
30
+ activemodel (7.1.3)
31
+ activesupport (= 7.1.3)
32
+ activesupport (7.1.3)
33
+ base64
34
+ bigdecimal
35
+ concurrent-ruby (~> 1.0, >= 1.0.2)
36
+ connection_pool (>= 2.2.5)
37
+ drb
38
+ i18n (>= 1.6, < 2)
39
+ minitest (>= 5.1)
40
+ mutex_m
41
+ tzinfo (~> 2.0)
42
+ ast (2.4.2)
43
+ base64 (0.2.0)
44
+ bigdecimal (3.1.6)
45
+ builder (3.2.4)
46
+ concurrent-ruby (1.2.3)
47
+ connection_pool (2.4.1)
48
+ crass (1.0.6)
49
+ debug (1.9.1)
50
+ irb (~> 1.10)
51
+ reline (>= 0.3.8)
52
+ drb (2.2.0)
53
+ ruby2_keywords
54
+ erubi (1.12.0)
55
+ i18n (1.14.1)
56
+ concurrent-ruby (~> 1.0)
57
+ io-console (0.7.2)
58
+ irb (1.11.2)
59
+ rdoc
60
+ reline (>= 0.4.2)
61
+ json (2.7.1)
62
+ language_server-protocol (3.17.0.3)
63
+ lint_roller (1.1.0)
64
+ loofah (2.22.0)
65
+ crass (~> 1.0.2)
66
+ nokogiri (>= 1.12.0)
67
+ minitest (5.22.2)
68
+ mutex_m (0.2.0)
69
+ nokogiri (1.16.2-arm64-darwin)
70
+ racc (~> 1.4)
71
+ nokogiri (1.16.2-x86_64-darwin)
72
+ racc (~> 1.4)
73
+ nokogiri (1.16.2-x86_64-linux)
74
+ racc (~> 1.4)
75
+ parallel (1.24.0)
76
+ parser (3.3.0.5)
77
+ ast (~> 2.4.1)
78
+ racc
79
+ psych (5.1.2)
80
+ stringio
81
+ racc (1.7.3)
82
+ rack (3.0.9)
83
+ rack-session (2.0.0)
84
+ rack (>= 3.0.0)
85
+ rack-test (2.1.0)
86
+ rack (>= 1.3)
87
+ rackup (2.1.0)
88
+ rack (>= 3)
89
+ webrick (~> 1.8)
90
+ rails-dom-testing (2.2.0)
91
+ activesupport (>= 5.0.0)
92
+ minitest
93
+ nokogiri (>= 1.6)
94
+ rails-html-sanitizer (1.6.0)
95
+ loofah (~> 2.21)
96
+ nokogiri (~> 1.14)
97
+ railties (7.1.3)
98
+ actionpack (= 7.1.3)
99
+ activesupport (= 7.1.3)
100
+ irb
101
+ rackup (>= 1.0.0)
102
+ rake (>= 12.2)
103
+ thor (~> 1.0, >= 1.2.2)
104
+ zeitwerk (~> 2.6)
105
+ rainbow (3.1.1)
106
+ rake (13.1.0)
107
+ rdoc (6.6.2)
108
+ psych (>= 4.0.0)
109
+ regexp_parser (2.9.0)
110
+ reline (0.4.2)
111
+ io-console (~> 0.5)
112
+ rexml (3.2.6)
113
+ rubocop (1.59.0)
114
+ json (~> 2.3)
115
+ language_server-protocol (>= 3.17.0)
116
+ parallel (~> 1.10)
117
+ parser (>= 3.2.2.4)
118
+ rainbow (>= 2.2.2, < 4.0)
119
+ regexp_parser (>= 1.8, < 3.0)
120
+ rexml (>= 3.2.5, < 4.0)
121
+ rubocop-ast (>= 1.30.0, < 2.0)
122
+ ruby-progressbar (~> 1.7)
123
+ unicode-display_width (>= 2.4.0, < 3.0)
124
+ rubocop-ast (1.30.0)
125
+ parser (>= 3.2.1.0)
126
+ rubocop-performance (1.20.2)
127
+ rubocop (>= 1.48.1, < 2.0)
128
+ rubocop-ast (>= 1.30.0, < 2.0)
129
+ ruby-progressbar (1.13.0)
130
+ ruby2_keywords (0.0.5)
131
+ standard (1.33.0)
132
+ language_server-protocol (~> 3.17.0.2)
133
+ lint_roller (~> 1.0)
134
+ rubocop (~> 1.59.0)
135
+ standard-custom (~> 1.0.0)
136
+ standard-performance (~> 1.3)
137
+ standard-custom (1.0.2)
138
+ lint_roller (~> 1.0)
139
+ rubocop (~> 1.50)
140
+ standard-performance (1.3.1)
141
+ lint_roller (~> 1.1)
142
+ rubocop-performance (~> 1.20.2)
143
+ stringio (3.1.0)
144
+ thor (1.3.0)
145
+ tzinfo (2.0.6)
146
+ concurrent-ruby (~> 1.0)
147
+ unicode-display_width (2.5.0)
148
+ webrick (1.8.1)
149
+ yard (0.9.34)
150
+ yard-activesupport-concern (0.0.1)
151
+ yard (>= 0.8)
152
+ zeitwerk (2.6.13)
153
+
154
+ PLATFORMS
155
+ arm64-darwin-22
156
+ universal-darwin-19
157
+ x86_64-linux
158
+
159
+ DEPENDENCIES
160
+ debug
161
+ dtb!
162
+ minitest
163
+ rake
164
+ standard
165
+ yard
166
+ yard-activesupport-concern (~> 0.0.1)
167
+
168
+ BUNDLED WITH
169
+ 2.2.16
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # DTB, DataTable Builder
2
+
3
+ DataTable Builder provides simple building blocks to build complex filterable
4
+ queries and turn them into easy to render datatables using Rails.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```
11
+ gem "dtb"
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle install
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install dtb
21
+
22
+ ## Usage
23
+
24
+ TODO: Write usage instructions here
25
+
26
+ ## Development
27
+
28
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
29
+ `rake test` to run the tests. You can also run `bin/console` for an interactive
30
+ prompt that will allow you to experiment.
31
+
32
+ To install this gem onto your local machine, run `bundle exec rake install`.
33
+
34
+ ## Contributing
35
+
36
+ Bug reports and pull requests are welcome on GitHub at [repo][]. This project is
37
+ intended to be a safe, welcoming space for collaboration, and contributors are
38
+ expected to adhere to the [code of conduct][].
39
+
40
+ ## Code of Conduct
41
+
42
+ Everyone interacting in the DTB project's codebases, issue trackers, chat rooms
43
+ and mailing lists is expected to follow the [code of conduct][].
44
+
45
+ [repo]: https://github.com/foca/dtb
46
+ [code of conduct]: https://github.com/foca/dtb/blob/main/CODE_OF_CONDUCT.md
data/Rakefile ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+ require "yard"
6
+
7
+ Rake::TestTask.new(:test) do |t|
8
+ t.libs << "test"
9
+ t.libs << "lib"
10
+ t.test_files = FileList["test/**/*_test.rb"]
11
+ end
12
+
13
+ YARD::Rake::YardocTask.new
14
+
15
+ require "standard/rake"
16
+
17
+ task default: %i[test standard yard build]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "dtb"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/dtb.gemspec ADDED
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/dtb/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "dtb"
7
+ spec.version = DTB::VERSION
8
+ spec.authors = ["Nicolas Sanguinetti"]
9
+ spec.email = ["foca@foca.io"]
10
+
11
+ spec.summary = "Toolkit for building dynamic data tables in Rails"
12
+ spec.description = <<~DESC
13
+ DataTable Builder provides simple building blocks to build complex
14
+ filterable queries and turn them into easy to render datatables using
15
+ Rails.
16
+ DESC
17
+ spec.homepage = "https://github.com/foca/dtb"
18
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.0")
19
+
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = spec.homepage
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "activesupport", ">= 4.2", "< 8.0"
33
+ spec.add_dependency "activemodel", ">= 4.2", "< 8.0"
34
+ spec.add_dependency "railties", ">= 4.2", "< 8.0"
35
+ spec.add_dependency "rack"
36
+ spec.add_dependency "i18n"
37
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/concern"
4
+ require_relative "has_options"
5
+
6
+ module DTB
7
+ # This mixin provides a protocol for objects to quickly turn themselves into a
8
+ # {DataTable}. Objects implementing this must override {#to_data_table} to
9
+ # return a Hash of arguments compatible with {DataTable#initialize}.
10
+ #
11
+ # The default implementation, geared towards {Query} objects, will run the
12
+ # query and pass the results of the run method as the data table's rows.
13
+ #
14
+ # @see Query
15
+ module BuildsDataTable
16
+ extend ActiveSupport::Concern
17
+ include HasOptions
18
+
19
+ class_methods do
20
+ # Instantiates this object and then calls #to_data_table
21
+ #
22
+ # @param ... any arguments will be forwarded to the constructor.
23
+ # @return (see #to_data_table)
24
+ def to_data_table(...)
25
+ new(...).to_data_table
26
+ end
27
+ end
28
+
29
+ # @return [Hash<Symbol, Object>] a Hash of arguments to pass to
30
+ # {DataTable#initialize}.
31
+ def to_data_table(*)
32
+ {rows: run, options: options}
33
+ end
34
+ end
35
+ end
data/lib/dtb/column.rb ADDED
@@ -0,0 +1,92 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "query_builder"
4
+ require_relative "has_options"
5
+ require_relative "renderable"
6
+
7
+ module DTB
8
+ # Columns represent each dimension of data that is shown to users when
9
+ # building a data table. These are normally displayed as columns in a
10
+ # traditional "table" element, but could easily be rendered as key-value
11
+ # pairs in a list of "card" components.
12
+ #
13
+ # == Rendering "cells" for a column
14
+ #
15
+ # Each column object can specify a renderer via {#render_with}, which you can
16
+ # then invoke with the row data as you're rendering. This is optional and the
17
+ # default renderer is +nil+, but it helps when using, e.g., view components to
18
+ # render a data table.
19
+ #
20
+ # @example
21
+ # class SomeQuery < DTB::Query
22
+ # column :name, render_with: NameCellComponent
23
+ #
24
+ # option :render_with, default: "data_table"
25
+ # end
26
+ #
27
+ # # data_table partial:
28
+ # <table>
29
+ # ...
30
+ # <tbody>
31
+ # <% data_table.rows.each do |row| %>
32
+ # <tr>
33
+ # <% data_table.columns.renderable.each do |column| %>
34
+ # <td><%= render column.renderer(row: row) %></td>
35
+ # <% end %>
36
+ # </tr>
37
+ # <% end %>
38
+ # </tbody>
39
+ # </table>
40
+ #
41
+ class Column < QueryBuilder
42
+ include HasOptions
43
+ include Renderable
44
+
45
+ # @!group Options
46
+
47
+ # @!attribute [rw] database
48
+ # Whether to affect the query or not. If this is false, this Column's
49
+ # {#call} method does nothing (just returns its input). This is useful for
50
+ # laying out purely presentational columns on data tables, such as actions
51
+ # at the end of each row, or a checkbox at the start.
52
+ option :database, default: true, required: true
53
+
54
+ # @!endgroup
55
+
56
+ # Looks up the column's header in the i18n sources. If the column is
57
+ # attached to an object that implements +ActiveModel::Translation+, the
58
+ # string will search in:
59
+ #
60
+ # {i18n_scope}.columns.{query_class}.{column_name}
61
+ #
62
+ # And on parent classes of +query_class+. Finally, if it's not found in any,
63
+ # or if the column is not attached to an +ActiveModel::Translation+, then it
64
+ # will attempt
65
+ #
66
+ # columns.{column_name}
67
+ #
68
+ # If none of the attempted translations exists, it will default to an empty
69
+ # string.
70
+ #
71
+ # @return [String]
72
+ def header
73
+ i18n_lookup(:columns, default: "")
74
+ end
75
+
76
+ # @return [Boolean] whether this column actually affects the query or not.
77
+ # @see #database
78
+ def database?
79
+ options[:database]
80
+ end
81
+
82
+ # @visibility private
83
+ def evaluate?
84
+ options[:database] && super
85
+ end
86
+
87
+ # (see Renderable#rendering_options)
88
+ def rendering_options
89
+ {column: self}
90
+ end
91
+ end
92
+ end