Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/state_machine/integrations/active_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ module Integrations #:nodoc:
# activemodel:
# errors:
# messages:
# invalid: "is invalid"
# # %{value} = attribute value, %{state} = Human state name
# invalid_event: "cannot transition when %{state}"
# # %{value} = attribute value, %{event} = Human event name, %{state} = Human current state name
Expand All @@ -255,7 +254,7 @@ module Integrations #:nodoc:
# errors:
# models:
# user:
# invalid: "is not valid"
# invalid_event: "is not valid"
#
# In addition to the above, you can also provide translations for the
# various states / events in each state machine. Using the Vehicle example,
Expand Down
1 change: 0 additions & 1 deletion lib/state_machine/integrations/active_model/locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
:activemodel => {
:errors => {
:messages => {
:invalid => StateMachine::Machine.default_messages[:invalid],
:invalid_event => StateMachine::Machine.default_messages[:invalid_event] % ['%{state}'],
:invalid_transition => StateMachine::Machine.default_messages[:invalid_transition] % ['%{event}']
}
Expand Down
3 changes: 1 addition & 2 deletions lib/state_machine/integrations/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ module Integrations #:nodoc:
# activerecord:
# errors:
# messages:
# invalid: "is invalid"
# # %{value} = attribute value, %{state} = Human state name
# invalid_event: "cannot transition when %{state}"
# # %{value} = attribute value, %{event} = Human event name, %{state} = Human current state name
Expand All @@ -384,7 +383,7 @@ module Integrations #:nodoc:
# errors:
# models:
# user:
# invalid: "is not valid"
# invalid_event: "is not valid"
#
# In addition to the above, you can also provide translations for the
# various states / events in each state machine. Using the Vehicle example,
Expand Down
3 changes: 1 addition & 2 deletions lib/state_machine/integrations/mongo_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ module Integrations #:nodoc:
# mongo_mapper:
# errors:
# messages:
# invalid: "is invalid"
# # %{value} = attribute value, %{state} = Human state name
# invalid_event: "cannot transition when %{state}"
# # %{value} = attribute value, %{event} = Human event name, %{state} = Human current state name
Expand All @@ -271,7 +270,7 @@ module Integrations #:nodoc:
# errors:
# models:
# user:
# invalid: "is not valid"
# invalid_event: "is not valid"
#
# In addition to the above, you can also provide translations for the
# various states / events in each state machine. Using the Vehicle example,
Expand Down
3 changes: 1 addition & 2 deletions lib/state_machine/integrations/mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ module Integrations #:nodoc:
# mongoid:
# errors:
# messages:
# invalid: "is invalid"
# # %{value} = attribute value, %{state} = Human state name
# invalid_event: "cannot transition when %{state}"
# # %{value} = attribute value, %{event} = Human event name, %{state} = Human current state name
Expand All @@ -321,7 +320,7 @@ module Integrations #:nodoc:
# errors:
# models:
# user:
# invalid: "is not valid"
# invalid_event: "is not valid"
#
# In addition to the above, you can also provide translations for the
# various states / events in each state machine. Using the Vehicle example,
Expand Down