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

Akinori MUSHA %!s(int64=10) %!d(string=hace) años
padre
commit
ba73dd4c8f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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