Sha256: 32fe5a0ec6d63dd7114914583c569062d08df6c62eee1a646f3826326c43e272
Contents?: true
Size: 1.33 KB
Versions: 13
Compression:
Stored size: 1.33 KB
Contents
# -*- encoding : utf-8 -*- class Card < ActiveRecord::Base require_dependency 'card/active_record_ext' require_dependency 'card/codename' require_dependency 'card/query' require_dependency 'card/set_pattern' require_dependency 'card/set' require_dependency 'card/format' require_dependency 'card/exceptions' require_dependency 'card/auth' require_dependency 'card/loader' has_many :references_from, :class_name => :Reference, :foreign_key => :referee_id has_many :references_to, :class_name => :Reference, :foreign_key => :referer_id has_many :acts, :order => :id has_many :actions, :order => :id, :conditions=>{:draft => [nil,false]} has_many :drafts, :order=>:id, :conditions=>{:draft=>true}, :class_name=> :Action cache_attributes 'name', 'type_id' # review - still worth it in Rails 3? cattr_accessor :set_patterns, :error_codes @@set_patterns, @@error_codes = [], {} attr_accessor :action, :supercard, :current_act, :current_action, :comment, :comment_author, # obviated soon :update_referencers, # wrong mechanism for this :follower_stash, :last_action_id_before_edit define_callbacks :approve, :store, :extend before_validation :approve around_save :store after_save :extend TRACKED_FIELDS = %w(name type_id db_content trash) Loader.load_mods if count > 0 end
Version data entries
13 entries across 13 versions & 1 rubygems