Class Example
In: app/models/example.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

   # File app/models/example.rb, line 6
6:   def to_label
7:     example[0..39] + (example.length > 40 ? "..." : '')
8:   end

Protected Instance methods

[Source]

    # File app/models/example.rb, line 12
12:   def authorized_for_create?
13:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
14:   end

[Source]

    # File app/models/example.rb, line 20
20:   def authorized_for_destroy?
21:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
22:   end

[Source]

    # File app/models/example.rb, line 24
24:   def authorized_for_read?
25:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
26:   end

[Source]

    # File app/models/example.rb, line 16
16:   def authorized_for_update?
17:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
18:   end

[Validate]