Skip to content
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

Add support for Trilogy MySQL adapter #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chriskozlowski
Copy link

Works for our use but did not fully test. Had to add the false argument to const_defined? in class_methods.rb or else the geokit_finder_adapter method would not load the new adapter. Not sure if that was an issue for other adapters or just the new one.

Add trilogy adapter

Revert "Add trilogy adapter"

This reverts commit 767b56e.
@@ -7,7 +7,7 @@ module ClassMethods
# A proxy to an instance of a finder adapter, inferred from the connection's adapter.
def geokit_finder_adapter
@geokit_finder_adapter ||= begin
unless Adapters.const_defined?(connection.adapter_name.camelcase)
unless Adapters.const_defined?(connection.adapter_name.camelcase, false)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [109/80]

class Trilogy < MySQL
end
end
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/TrailingBlankLines: Final newline missing.

@@ -0,0 +1,8 @@
require 'geokit-rails/adapters/mysql'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant