Editing pin.rb in models