Class: Ibrain::Role

Inherits:
Base show all
Defined in:
app/models/ibrain/role.rb

Constant Summary

Constants inherited from Base

Base::IGNORE_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Base

adjust_date_for_cdt, #created_in_word, #cryptor, display_includes, paginate, permitted_attributes, #string_id

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/ibrain/role.rb', line 10

def admin?
  name == "admin"
end