`before_create` works too.  Also consider moving this into a method and making the call, e.g., `before_create :set_author`. It helps organize the code better.