Class: SuperAuth::User
- Inherits:
-
Object
- Object
- SuperAuth::User
- Defined in:
- lib/super_auth/user.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#system? ⇒ Boolean
A read: runtime roles only get SELECT on this table.
Class Method Details
.system ⇒ Object
8 |
# File 'lib/super_auth/user.rb', line 8 def self.system = find_or_create(name: "system") |
Instance Method Details
#system? ⇒ Boolean
A read: runtime roles only get SELECT on this table. .system creates
the row when missing and belongs to migrations, seeds and consoles.
7 |
# File 'lib/super_auth/user.rb', line 7 def system? = self.class.first(name: "system") == self |