Sha256: 25ba0c7fc548db599814defdc17472612377fcb52ab4e4a0562a713f9b78d333
Contents?: true
Size: 539 Bytes
Versions: 5
Compression:
Stored size: 539 Bytes
Contents
require 'activerecord-import/base' class Book < ActiveRecord::Base include SmarterDates if ::Configuration.for('smarter_dates').enabled attr_accessible :author, :last_checkout_at, :title, :library_id belongs_to :library, :inverse_of => :books validates :title, alpha_numeric: {punctuation: :limited}, presence: true validates :author, alpha_numeric: {punctuation: :limited}, presence: true validates :library_id, presence: true RECORD_HEADERS = {title: 'title', author: 'author', last_checkout_at: 'last checkout at'} end
Version data entries
5 entries across 5 versions & 1 rubygems