Skip to content

Commit

Permalink
Remove attributes invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhurd2326 committed Jul 18, 2024
1 parent 7a20ea3 commit 69c26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/has_state_machine/state_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module StateHelpers
# Getter for the current state of the model based on the configured state
# attribute.
def current_state
attributes.with_indifferent_access[state_attribute]
public_send(state_attribute)
end

##
Expand Down

0 comments on commit 69c26f8

Please sign in to comment.