erbac 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- 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