erbac 0.0.4 → 0.0.5
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/erbac/active_record_support.rb +2 -2
- data/lib/erbac/version.rb +1 -1
- metadata +1 -1
@@ -177,7 +177,7 @@ module Erbac
|
|
177
177
|
# make it transparent with the user
|
178
178
|
define_method :marshal_around_save do |*args, &block|
|
179
179
|
data = self.data
|
180
|
-
self.data = Marshal.dump
|
180
|
+
self.data = Marshal.dump(data).force_encoding("UTF-8")
|
181
181
|
block.call # it is a trick, search it!
|
182
182
|
self.data = data
|
183
183
|
end
|
@@ -214,7 +214,7 @@ module Erbac
|
|
214
214
|
# make it transparent with the user
|
215
215
|
define_method :marshal_around_save do |*args, &block|
|
216
216
|
data = self.data
|
217
|
-
self.data = Marshal.dump
|
217
|
+
self.data = Marshal.dump(data).force_encoding("UTF-8")
|
218
218
|
block.call # it is a trick, search it!
|
219
219
|
self.data = data
|
220
220
|
end
|
data/lib/erbac/version.rb
CHANGED