aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/builder.rb')
-rw-r--r--activesupport/lib/active_support/builder.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/builder.rb b/activesupport/lib/active_support/builder.rb
new file mode 100644
index 0000000000..321e462acd
--- /dev/null
+++ b/activesupport/lib/active_support/builder.rb
@@ -0,0 +1,6 @@
+begin
+ require 'builder'
+rescue LoadError => e
+ $stderr.puts "You don't have builder installed in your application. Please add it to your Gemfile and run bundle install"
+ raise e
+end