Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spork-formatastic workaround. #425

  • Loading branch information...
commit a919eae3dbd96563fe1dba030a31b6b09eaa9905 1 parent 0d6de7a
Mark Yoon authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
View
13 README.md
@@ -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`
Please sign in to comment.
Something went wrong with that request. Please try again.