test/dummy/app/models/user.rb in crimagify-0.0.2.1 vs test/dummy/app/models/user.rb in crimagify-0.0.3.1

- old
+ new

@@ -1,10 +1,15 @@ class User < ActiveRecord::Base extend Crimagify::DinamicImageMethods #proximo paso que esto sea dinamico en un generate has_many :crimagify_images, :as => :parent, :dependent => :destroy, :class_name => Crimagify::Image + has_many :products attr_accessible :email, :lastname, :name + attr_accessible :products_attributes + + accepts_nested_attributes_for :products, allow_destroy: true + # self.assign_attributes(params[:producs_attributes], :create) #===========================building methods dinamically===========================# #y esto tambien tiene que ser dinamico en los generators build_methods_images #==================================================================================#