New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade data table #1
Conversation
lib/data-table/table.rb
Outdated
@@ -119,7 +118,7 @@ def render_rows(collection) | |||
html = "" | |||
collection.each_with_index do |row, row_index| | |||
css_class = @alternate_rows && row_index % 2 == 1 ? 'alt ' : '' | |||
if @row_style && style = @row_style.call(row, row_index) | |||
if @row_style && style == @row_style.call(row, row_index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may actually need to be assignment, otherwise what is style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point and thanks. Fixed.
A working CI configuration, be still my heart. |
b6343c1
to
9c9a462
Compare
9c9a462
to
9510c66
Compare
[ | ||
{name: 'Luke Skywalker', class: 'Jedi Knight', world: 'Star Wars', power_level: 50}, | ||
{name: 'Emporer Palpatine', class: 'Sith Lord', world: 'Star Wars', power_level: 95}, | ||
{name: 'Mithrander', class: 'Wizard', world: 'Middle Earth', power_level: 9001}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mithrandir
let(:collection) { | ||
[ | ||
{name: 'Luke Skywalker', class: 'Jedi Knight', world: 'Star Wars', power_level: 50}, | ||
{name: 'Emporer Palpatine', class: 'Sith Lord', world: 'Star Wars', power_level: 95}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Emperor
@@ -1,12 +1,12 @@ | |||
require 'data-table' | |||
require 'pry' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pry
isn't in the gemspec
@@ -0,0 +1,161 @@ | |||
require 'byebug' | |||
require 'pry' | |||
require 'pry-byebug' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All three of these are missing from the gemspec
Preparation for locking apps at data-table v1.0 and moving axiom-rails to v2.0 Apps that include data-table gem: |
Still in progress....