Skip to content

Commit

Permalink
Fix typo in aasm_write_state
Browse files Browse the repository at this point in the history
  • Loading branch information
generalzhou committed Jul 16, 2014
1 parent 6aa96d8 commit e03fe3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aasm/persistence/sequel_persistence.rb
Expand Up @@ -84,7 +84,7 @@ def aasm_ensure_initial_state
# NOTE: intended to be called from an event
def aasm_write_state state
aasm_column = self.class.aasm_column
update_ony({aasm_column => state.to_s}, aasm_column)
update_only({aasm_column => state.to_s}, aasm_column)
end

# Writes <tt>state</tt> to the state column, but does not persist it to the database
Expand Down

0 comments on commit e03fe3c

Please sign in to comment.