acts_as_readonlyable 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/acts_as_readonlyable.rb +8 -0
  2. metadata +1 -1
@@ -93,6 +93,14 @@ module ActiveRecord::Acts::ActsAsReadonlyable
93
93
  end
94
94
  end
95
95
 
96
+ def calculate(operation, column_name, options = {})
97
+ run_on_db(options) do
98
+ options.delete(:readonly)
99
+ super
100
+ end
101
+ end
102
+
103
+
96
104
  private
97
105
 
98
106
  def run_on_db(options)
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: acts_as_readonlyable
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.7
6
+ version: 0.0.8
7
7
  date: 2007-06-12 00:00:00 -04:00
8
8
  summary: acts_as_readonlyable allows to add read-only slaves DBs to models
9
9
  require_paths: