We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Parent ransack_alias :full_name, :first_name_or_last_name end class Child belongs_to :parent end
Working scenario:
Parent.ransack(full_name_cont: 'a').result # works correctly
Error scenario: Child.ransack(parent_full_name_cont: 'a').result Result:
Child.ransack(parent_full_name_cont: 'a').result
undefined method `type' for nil:NilClass (NoMethodError) attr.klass.columns.find { |column| column.name == name }.type ^^^^^
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Working scenario:
Parent.ransack(full_name_cont: 'a').result # works correctly
Error scenario:
Child.ransack(parent_full_name_cont: 'a').result
Result:
The text was updated successfully, but these errors were encountered: