acts_as_readonlyable 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/acts_as_readonlyable.rb +8 -0
- metadata +1 -1
data/lib/acts_as_readonlyable.rb
CHANGED
|
@@ -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.
|
|
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:
|