Skip to content

Interning empty string  #158

@tienle

Description

@tienle

When a model has no non-polymorphism associations, but does have polymorphism associations. It may lead to an exception while trying to convert an empty string (association_name variable) to symbol in the method #association_condition_details (searchlogic/named_scopes/association_conditions.rb#L24)
Step to reproduce:

  1. Create a model A like above
  2. Call A.respond_to? :_dump

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions