Skip to content

where.first can be replaced by find_by #182

@lelelelemon

Description

@lelelelemon

pp = self.variant_properties.where({ :variant_properties => {:primary => true}}).first

in order to avoid the unnecessary order by primary key operation

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