Skip to content

Commit

Permalink
reload rich_types
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Feb 10, 2010
1 parent dffe468 commit ee12f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hobo_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ def enable
if defined?(::Rails)
plugins = Rails.configuration.plugin_loader.new(HoboFields.rails_initializer).plugins
([::Rails.root] + plugins.map(&:directory)).each do |dir|
ActiveSupport::Dependencies.load_paths << File.join(dir, 'app', 'rich_types')
Dir[File.join(dir, 'app', 'rich_types', '*.rb')].each do |f|
# TODO: should we complain if field_types doesn't get a new value? Might be useful to warn people if they're missing a register_type
require f
require_dependency f
end
end

Expand Down

0 comments on commit ee12f9b

Please sign in to comment.