Hi,

Invoking merb, I got warnings about constant definition in model
classes:

    $ merb -i
    Loading init file from /Users/kwatch/myapp1/config/init.rb
    Loading /Users/kwatch/myapp1/config/environments/development.rb
     ~ Parent pid: 53711
    /Users/kwatch/myapp1/app/models/person.rb:3: warning: already
initialized constant GENDERS
    /Users/kwatch/myapp1/app/models/person.rb:3: warning: already
initialized constant GENDERS
     ~ Compiling routes...
    irb> exit

Here is the model class definition:

    class Person
      include DataMapper::Resource
      GENDERS = [:Men, :Women]
      property :id, Serial
      property :name, String, :nullable => false, :length => 255
      property :gender, Enum[*GENDERS]
    end

Why merb (or ruby) reports warnings for constant definition?
Merb loads model class files more than once?

--
regards,
makoto kuwata


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to