Class ExampleTranslation
In: app/models/example_translation.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

    # File app/models/example_translation.rb, line 8
 8:   def to_label
 9:     translation[0..39] + (translation.length > 40 ? "..." : '')
10:   end

Protected Instance methods

[Source]

    # File app/models/example_translation.rb, line 14
14:   def authorized_for_create?
15:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
16:   end

[Source]

    # File app/models/example_translation.rb, line 22
22:   def authorized_for_destroy?
23:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
24:   end

[Source]

    # File app/models/example_translation.rb, line 26
26:   def authorized_for_read?
27:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
28:   end

[Source]

    # File app/models/example_translation.rb, line 18
18:   def authorized_for_update?
19:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
20:   end

[Validate]