--=-BiR8wmSTa9bFNmzgAxeV
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi.

I was wondering why this wouldn't work:

  class Bar
  end

  class Foo
    def initialize
      # doesn't call the method, but gives me the class instead.
      p Bar.inspect=20
    end

    def Bar
      "whatever"
    end
  end

I know this is bad style anyway, but would be kind of convenient in
rails controllers:

  def ProfileField
    ProfileField.for_user(current_user) # for_user being a scope
  end

  # somewhere else in controller:
  ProfileField.find(:all)

Anyone got an idea how to "fake" constants that way?



--=-BiR8wmSTa9bFNmzgAxeV
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABAgAGBQJM4PuNAAoJEIQdQGZOjo82lsgP/Axi9UhSZAvTTof7k+hI9R3R
tKaKicRxWCmozWEwjJQtOOx+1Y70MSzQAHnb+QY2xiXhPw9FbiYArOG2fSwpRrV2
PnAzX/89WfdGemZwoPUIibdqVvMBMR0xHAg9fT+Cw+YIx2XlewT9erpVzQkuWNvM
OgkhGUYhyrTxwhMmgZ24QjB/nZLsEADI9oMDAym1yE1fZtPQm6uHQ/0O0olMd6bN
tZHQOtSWRS9j7KmFICC2aglHR3SBgFhz7hyqWEM7+XC+Q8PKB5Q7Nijthk3p6uO4
RpwYb4FK/UIL3Q6oLnTtoIMbBMQLqjtvtb5yE8xIq3VJMSs1kfKKoKpDJlhoqNEJ
KMuIjw5p8h/xpJGc3ZvSMqYFEouzNQjmFWUc3kXeBroVjzciZ2rFzGzGChPKRUyK
gk8pKsgTeQ8sXLzvN4RFH9knGVM5SHemPhdC+OK3p+rYpgCyYCC2cDm+rII5zvmZ
iQq82kyRPe3Dfzm70RjGILceqkraSDMEjd+eDRskkgktFZtrnwcAExsJjI6mkY/b
Wnpv+6R8eg3jJ98b+64mo81PZB4BNQ7ccyAIjMIpEEg9YuR+z7VSpkN0cqFJAPRq
UaeNE+ZIb8Ul9N9BFpGvhGXWDJ2OUddgRsF1crypG5a8fYET0B21YRaYZCBveSVp
IWUdXpHY1pkhCM+Sphu2
=hC/+
-----END PGP SIGNATURE-----

--=-BiR8wmSTa9bFNmzgAxeV--