Sha256: bfe5df0f7445783920ef55db2c6c343466402e67158b6444af6f1c5386b22401
Contents?: true
Size: 523 Bytes
Versions: 8
Compression:
Stored size: 523 Bytes
Contents
module DirModel module Model extend ActiveSupport::Concern included do include Utils include Files include Relations # @return [Model] return the parent, if this instance is a child attr_reader :parent end # @param [NilClass] path not used here, see {Input} # @param [Hash] options # @option options [String] :parent if the instance is a child, pass the parent def initialize(path=nil, options={}) @parent = options[:parent] end end end
Version data entries
8 entries across 8 versions & 1 rubygems