Sha256: 55927ab1b39878b7cc5c50a9cf11c8e24421bc34b4cb0f6199711d186acc8839
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 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 :revisions, :order => :id has_many :references_from, :class_name => :Reference, :foreign_key => :referee_id has_many :references_to, :class_name => :Reference, :foreign_key => :referer_id cache_attributes 'name', 'type_id' # review - still worth it in Rails 3? cattr_accessor :set_patterns, :error_codes @@set_patterns, @@error_codes = [], {} attr_writer :selected_revision_id #writer because read method is in mod (and does not override upon load) attr_accessor :action, :supercard, :comment, :comment_author, # obviated soon :update_referencers # wrong mechanism for this define_callbacks :approve, :store, :extend before_validation :approve around_save :store after_save :extend Loader.load_mods if count > 0 tracks :content # we can phase this out and just use "dirty" handling once current content is stored in the cards table end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wagn-1.13.0 | lib/card.rb |
wagn-1.13.0.pre2 | lib/card.rb |