ActiveModel and Rails integration