migration generator doesn't load all of app/rich_types
Reported by Bryan Larsen | January 11th, 2012 @ 02:20 AM | in Hobo 1.4 for Rails 3.2.X
I had a file color.rb in app/rich_types.
class Color < String
COLUMN_TYPE = :string
HoboFields.register_type(:color, Color)
end
When I tried to use it
fields do
color :color
end
It worked fine in my app but it didn't in my migrations. I had to add an extra reference to "Color" to force the autoloader to load the file. The reason it worked in my app without the extraneous reference because there was a reference to "Color" in my views. The migration generator does not load the views.
Is there a nice way to force the migration generator to load all of app/rich_types?
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป