Filters inheritance.
This commit is contained in:
parent
8f7e2c0da2
commit
d4272cf098
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ module Ace
|
|||
class Item
|
||||
def self.inherited(subclass)
|
||||
self.subclasses << subclass
|
||||
subclass.before_filters.push(*self.before_filters)
|
||||
subclass.after_filters.push(*self.after_filters)
|
||||
end
|
||||
|
||||
def self.subclasses
|
||||
|
|
Loading…
Reference in a new issue