Sha256: 58fea27723d69488b924cd6adf0dfca7ed0fbc747be9effca8472c8378306b95
Contents?: true
Size: 474 Bytes
Versions: 9
Compression:
Stored size: 474 Bytes
Contents
# this is needed for now to make mass assignment security compatible with the translation of globalize3 Globalize::ActiveRecord::Translation.class_eval do attr_accessible :locale end class Illustration < ActiveRecord::Base attr_accessible :image, :name validates_presence_of :name translates :name mount_uploader :image, ImageUploader def to_param name ? "#{id}-#{name.to_url}" : id end scope :by_recent, :order => 'updated_at desc' end
Version data entries
9 entries across 9 versions & 1 rubygems