Sha256: 36857fc652e5fa562718df227e4e19b8ff103e8b470b3817de53b0042f116df5

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

class Product < 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
  attr_accessible :description, :name
  #===========================building methods dinamically===========================#
  #y esto tambien tiene que ser dinamico en los generators
  build_methods_images
  #==================================================================================#
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crimagify-0.0.2.1 test/dummy/app/models/product.rb
crimagify-0.0.2 test/dummy/app/models/product.rb