Skip to content
Merged
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
## Unreleased

### Compatible changes
-
- Fix error "undefined method `[]' for nil" due to missing code line in previous version

### Breaking changes
-
Expand Down
1 change: 1 addition & 0 deletions lib/rails_state_machine/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def state_events(state_attribute = DEFAULT_STATE_ATTRIBUTE)
private

def state_machine_state_manager(state_attribute)
@state_machine_state_managers ||= {}
@state_machine_state_managers[state_attribute] ||= StateManager.new(self, state_machine(state_attribute), state_attribute)
end

Expand Down