def method=(type, object)
unless product.shop.send("#{type}_methods").include?(object)
raise ArgumentError.new('This product does not contain #{type} method')
end
self.send("#{type}_method_id}=", object.id) if object.kind_of?("#{type.capitalize}Method".constantize)
end
has_many :contractorEs
has_many :contractors