Permalink
Browse files

spork-formatastic workaround. #425

  • Loading branch information...
1 parent 0d6de7a commit a919eae3dbd96563fe1dba030a31b6b09eaa9905 Mark Yoon committed Mar 15, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
@@ -72,6 +72,19 @@ and review the [changelog][] for changes that may affect your customizations.
[changelog]: https://github.com/NUBIC/surveyor/blob/master/CHANGELOG.md
+## Users of spork
+
+There is [an issue with spork and custom inputs in formatstic (#851)][851]. A workaround (thanks rmm5t!):
+
+ Spork.prefork do
+ # ...
+ surveyor_path = Gem.loaded_specs['surveyor'].full_gem_path
+ Dir["#{surveyor_path}/app/inputs/*_input.rb"].each { |f| require File.basename(f) }
+ # ...
+ end
+
+[851]: https://github.com/justinfrench/formtastic/issues/851
+
## Follow master
If you are following pre-release versions of surveyor using a `:git`

0 comments on commit a919eae

Please sign in to comment.