about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorばん <detteiu0321@gmail.com>2017-04-23 02:48:55 +0900
committerEugen <eugen@zeonfederated.com>2017-04-22 19:48:55 +0200
commit5817bae2da68dc052d37d4c3ada37c4734de7fe4 (patch)
treeb9d7248fbf53e736e5d57e54cbdff471253585d1 /config/initializers
parent4cfc15556016c886aa0f385ea664680647e31aca (diff)
fix can toot whitespace (#2218)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/fast_blank.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/fast_blank.rb b/config/initializers/fast_blank.rb
new file mode 100644
index 000000000..174ea7664
--- /dev/null
+++ b/config/initializers/fast_blank.rb
@@ -0,0 +1,5 @@
+if String.method_defined?(:blank_as?)
+  class String
+    alias_method :blank?, :blank_as?
+  end
+end