change from 'type => :model' to 'type: :model'