Skip to content

Should support stripping of 'humanized' attribute #2

Description

@jayuen

If I have the following:

autocomplete_for :project, :code do
  self.project = self.site.projects.find_by_code @project_code.strip!
end

I need to explicitly strip @project_code in order to prevent incorrect matches due to extraneous whitespace. Would be more DRY if the generated instance variable was stripped when initialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions