lib/atome/genesis/genesis.rb in atome-0.5.7.3.3 vs lib/atome/genesis/genesis.rb in atome-0.5.7.3.5
- old
+ new
@@ -79,15 +79,11 @@
# unless @id
# alert self.id
# end
Atome.define_method element do |params = nil, &user_proc|
- # if @id
- # alert "======> #{self.class}"
@history[element] ||= []
- # else
- # alert "======> #{self.inspect}"
- # end
+
if (params || params == false) && write_auth(element)
params = particle_sanitizer(element, params, &user_proc)
# the line below execute the main code when creating a new particle
# ex : new({ particle: :my_particle } do....
# instance_exec(params, user_proc, &method_proc) if method_proc.is_a?(Proc)