Skip to content

Commit

Permalink
published 0.5.10 - revert changed arel_table
Browse files Browse the repository at this point in the history
  • Loading branch information
PNixx committed Jun 22, 2022
1 parent 10d188d commit c2a4f86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Version 0.5.8 (Oct 25, 2021)
### Version 0.5.10 (Jun 22, 2022)

* Added support rails 7
* Fixes to create_table method (#70)
* Added support for rails 7 (#65)
* Use ClickHouse default KeepAlive timeout of 10 seconds (#67)

### Version 0.5.6 (Oct 25, 2021)

Expand Down
13 changes: 3 additions & 10 deletions lib/active_record/connection_adapters/clickhouse_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,10 @@ def is_view
def is_view=(value)
@is_view = value
end
end
end

ActiveRecord::Core::ClassMethods.module_eval do
def arel_table
@arel_table ||=
if self.connection.is_a?(ConnectionAdapters::ClickhouseAdapter)
ClickhouseActiverecord::Arel::Table.new(table_name, type_caster: type_caster)
else
Arel::Table.new(table_name, klass: self)
end
def arel_table # :nodoc:
@arel_table ||= ClickhouseActiverecord::Arel::Table.new(table_name, type_caster: type_caster)
end
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/clickhouse-activerecord/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ClickhouseActiverecord
VERSION = '0.5.9'
VERSION = '0.5.10'
end

0 comments on commit c2a4f86

Please sign in to comment.