#475 ✓resolved
kevinpfromnm

User specified rich types do not reliably load when called with symbol

Reported by kevinpfromnm | July 30th, 2009 @ 10:55 PM | in Hobo 1.0 - Final

Say you have a new rich type...

class Url < String
  COLUMN_TYPE = :string
  HoboFields.register_type(:url, self)
  ...
end

And an field using your new type

fields do
  ...
  homepage :url
end

On first load of the server, or if you go into script/console you'll find the homepage field returns class of String. Also, polymorphic dryml tags will not properly trigger (i.e. you have a particular view tag for Url).

If you change the fields call to be:

  homepage Url

it will load properly.

This isn't as much an issue except two things, 1) the symbol is the way demonstrated in the manual and 2) symbols are more consistent with how the other fields are defined.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Referenced by

Pages