Sha256: eb3e372aacc3516853faf5e5fbddfb306a300dec5c90904bbdefaa9cfd544f90
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
module RailsClafer class Association class << self def from_ar_assoc(src_class, ar_assoc) card = Card.from_ar_assoc ar_assoc assoc = new src_class.name, ar_assoc.klass.name, card assoc.ref_name = ar_assoc.name assoc end end attr_accessor :src, :dst, :dst_card, :ref_name def initialize(src, dst, dst_card) @src, @dst, @dst_card = src, dst, dst_card end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_clafer-0.1.2 | lib/rails_clafer/association.rb |