Skip to content

Add easy method of changing the model name #1

@lengarvey

Description

@lengarvey

Code like the following sucks:

  def self.model_name
    ActiveModel::Name.new(self, nil, Object.to_s)
  end

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