Class: ActiveAcl::DB::ActiveRecordAdapter
- Defined in:
- lib/active_acl/db/active_record_adapter.rb
Overview
Uses ActiveRecord for privilege queries. Should be compatible to all db types.
Class Method Summary collapse
-
.query(sql) ⇒ Object
Execute sql query against the DB, returning an array of results.
Class Method Details
.query(sql) ⇒ Object
Execute sql query against the DB, returning an array of results.
9 10 11 |
# File 'lib/active_acl/db/active_record_adapter.rb', line 9 def self.query(sql) ActiveRecord::Base.connection.select_all(sql) end |