How can the filter methods in ruby on rails be protected?

devquora
devquora

Posted On: Feb 22, 2018

 

Some of the methods are listed below which are used for the protection of filters: –
  • Public: any external class or method that uses the same class in which it is defined can access this method.
  • Protected: these can be used only within the class in which they are defined and the classes that inherit from the class in which they are defined.
  • Private: these can be accessed only within the class in which they are defined.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ruby on Rails Interview Questions

    Mention all the naming conventions in ruby on rails.

    Following is a list of some naming conventions used in ruby on rails:Variables– it is used for the declaration of v..

    Ruby on Rails Interview Questions

    Explain the features of ruby on rails.

    Some of the features of ruby on rails are listed below-Meta-programming: code generation is used but for heavy liftin..

    Ruby on Rails Interview Questions

    How is the model view controller framework used in ruby on rails?

    The web development is usually divided into three subsystems closely integrated to each other. They are: –Model (ac..