Sha256: 2dc9240eb68ba91bc02d77f29896ae11920d6cbe6004352eca4425dbbe248a1f
Contents?: true
Size: 173 Bytes
Versions: 3
Compression:
Stored size: 173 Bytes
Contents
class Secondary < ActiveRecord::Base belongs_to :primary def validate errors.add_to_base("Secondary's name cannot be illegal.") if self.name == 'illegal' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mir_extensions-1.1.0 | app/models/secondary.rb |
mir_extensions-1.0.0 | app/models/secondary.rb |
mir_extensions-0.2.0 | app/models/secondary.rb |