Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ActiveRecordRepository
- class Item < ActiveRecord::Base
- validates :name, :description, :price, :email, presence: true
- mount_uploader :image, ImageUploader
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement