Skip to content

Commit

Permalink
Remove unused #table_name_for_association
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt committed May 21, 2018
1 parent a41a128 commit b360aea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lib/tabulatr/data/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ def join_required_tables(params)
# @relation = @relation.group("#{@table_name}.#{@base.primary_key}")
end

def table_name_for_association(assoc)
@base.reflect_on_association(assoc.to_sym).table_name
# assoc.to_sym
end

end

require_relative './dsl'
Expand Down
1 change: 0 additions & 1 deletion spec/lib/tabulatr/data/filtering_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ class DummyFilteringClass

def table_columns; []; end
def filters; []; end
def table_name_for_association(assoc); nil; end
end

describe '.apply_date_condition' do
Expand Down

0 comments on commit b360aea

Please sign in to comment.