Sha256: bcb94d4383754aec91fb44c131931f512f61d424d331d4f22fec6fb045191e06
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
module ViewMapper module HasManyView include HasManyChildModels def self.source_root File.expand_path(File.dirname(__FILE__) + "/templates") end def source_roots_for_view [ HasManyView.source_root, File.expand_path(source_root), File.join(self.class.lookup('model').path, 'templates') ] end def manifest m = super.edit do |action| action unless is_child_model_action?(action) end add_child_models_manifest(m) m end def validate super @valid &&= validate_child_models end end end
Version data entries
4 entries across 4 versions & 1 rubygems