Make `dry_run!` mark the object as `readonly!`.

Akinori MUSHA 10 年 前
コミット
ba73dd4c8f
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      app/concerns/dry_runnable.rb

+ 2 - 0
app/concerns/dry_runnable.rb

@@ -1,5 +1,7 @@
1 1
 module DryRunnable
2 2
   def dry_run!
3
+    readonly!
4
+
3 5
     class << self
4 6
       prepend Sandbox
5 7
     end