Model publication handling for Rails