Sha256: ee72a22679c2c03a6ff1399d74b9384e95e51f145205e953fb73e6b440140bfc
Contents?: true
Size: 596 Bytes
Versions: 29
Compression:
Stored size: 596 Bytes
Contents
module Rubix module Associations module BelongsToTemplate def template= h return unless h @template = h @template_id = h.id end def template return @template if @template return unless @template_id @template = Template.find(:id => @template_id) end def template_id= tid return unless tid @template_id = tid end def template_id return @template_id if @template_id return unless @template @template_id = @template.id end end end end
Version data entries
29 entries across 29 versions & 1 rubygems