lib/acl9/model_extensions.rb in be9-acl9-0.9.4 vs lib/acl9/model_extensions.rb in be9-acl9-0.10.0
- old
+ new
@@ -32,10 +32,10 @@
INNER JOIN #{role_table} ON #{role_table}.id = #{role.underscore}_id
EOS
sql_where = <<-'EOS'
WHERE authorizable_type = '#{self.class.base_class.to_s}'
- AND authorizable_id = #{id}"
+ AND authorizable_id = #{id}
EOS
has_many :accepted_roles, :as => :authorizable, :class_name => role, :dependent => :destroy
has_many :"#{subj_table}",