Displaying 1 result from an estimated 1 matches for "bankcontrol".
Did you mean:
bagcontrol
2008 Oct 06
2
Filter inheritance
...private has any sense here .because you
can use it from ur child class , why just make it public ?
below is the example from rail api.
Controller inheritance hierarchies share filters downwards, but
subclasses can also add or skip filters without affecting the
superclass. For example:
class BankController < ActionController::Base
before_filter :audit
private
def audit
# record the action and parameters in an audit log
end
end
class VaultController < BankController
before_filter :verify_credentials
private
def verify_credentials
# make...