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

Not support rails 6.1.0 #9

Open
guolijun opened this issue Dec 17, 2020 · 4 comments
Open

Not support rails 6.1.0 #9

guolijun opened this issue Dec 17, 2020 · 4 comments

Comments

@guolijun
Copy link

NoMethodError (undefined method `name' for ""cte"":Arel::Nodes::SqlLiteral):

@guolijun
Copy link
Author

guolijun commented Dec 17, 2020

module Arel
  module Nodes
    class SqlLiteral < String
      def name
        to_s
      end
    end
  end
end

Fixed

@kmurph73
Copy link
Owner

thanks, will give it a look

@kmurph73
Copy link
Owner

Pushed a temp fix to the rails_6_1 branch

Can you try it out via gem 'ctes_in_my_pg', github: 'kmurph73/ctes_in_my_pg', branch: 'rails_6_1' ?

Not sure why Arel is expecting the object to have a name method there...

@ahayworth
Copy link

@kmurph73 Hello! I can confirm that your rails_6_1 branch does work on an app I just upgraded to 6.1 today. 😄

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

No branches or pull requests

3 participants