Class PartsController
In: app/controllers/parts_controller.rb
Parent: ApplicationController

Methods

Public Instance methods

[Source]

    # File app/controllers/parts_controller.rb, line 25
25:   def conditions_for_collection
26:     [
27:       'parts.language_id = ?', 
28:       [
29:         session[:language_dictionary_id]
30:       ]
31:     ]
32:   end

Protected Instance methods

[Source]

    # File app/controllers/parts_controller.rb, line 48
48:   def create_authorized?
49:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
50:   end

[Source]

    # File app/controllers/parts_controller.rb, line 52
52:   def destroy_authorized?
53:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
54:   end

[Source]

    # File app/controllers/parts_controller.rb, line 40
40:   def read_authorized?
41:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
42:   end

[Source]

    # File app/controllers/parts_controller.rb, line 36
36:   def search_authorized?
37:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
38:   end

[Source]

    # File app/controllers/parts_controller.rb, line 44
44:   def update_authorized?
45:     return is_authorized_as?(UserRole::USER_ROLE_ADMIN)
46:   end

[Validate]