Browse Source

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

Akinori MUSHA 10 years ago
parent
commit
ba73dd4c8f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/concerns/dry_runnable.rb

+ 2 - 0
app/concerns/dry_runnable.rb

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