be9/acl9 — Issue #43: AJAX requests breaks after upgrade rails from 2.3.8. to 2.3.11
Author: aya-soft
Created: 2011-11-17 19:39:16+00:00
State: open

I have role names in russian, for example:

access_control do
allow :Администратор
allow :Заказчик
allow :Исполнитель
deny anonymous
end

and after upgrade rails from 2.3.8. to 2.3.11 a became FilterSyntaxError in generators.rb only by AJAX requests here :

def to_proc
code = <<-RUBY
lambda do |controller|
unless #{allowance_expression}
#{_access_denied}
end
end
RUBY

self.instance_eval(code, __FILE__, __LINE__)
rescue SyntaxError
raise FilterSyntaxError, code
end