state-machines / state_machines-activemodel

StateMachines ActiveModel Integration
MIT License
33 stars 33 forks source link

resolve #37, prefer hard coded state human_name over default translation #38

Open vanboom opened 3 months ago

vanboom commented 3 months ago

If the user hard codes a human_name, we should prefer it over the default translation method.

class MyClass
  state_machine :state, initial: :pending do
    state :pending, human_name: "To Do"
    state :in_progress, human_name: "In Progress"
  end
end