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

 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.

Comments

Popular posts from this blog

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

What are the different filters used in ruby on rails?