Sha256: 7aef5bd2d57991b46ef70c822c7e9ace609e414eb7447eb2adc2140d7fcfa5ee
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
class Model < ActiveRecord::Base include Authorization has_many_hosts has_many :trends, :as => :trendable, :class_name => "ForemanTrend" before_destroy EnsureNotUsedBy.new(:hosts) validates_uniqueness_of :name validates_presence_of :name default_scope :order => 'LOWER(models.name)' scoped_search :on => :name, :complete_value => :true, :default_order => true scoped_search :on => :info end
Version data entries
5 entries across 5 versions & 1 rubygems