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
|
class Item
|
||||||
def self.inherited(subclass)
|
def self.inherited(subclass)
|
||||||
self.subclasses << subclass
|
self.subclasses << subclass
|
||||||
|
subclass.before_filters.push(*self.before_filters)
|
||||||
|
subclass.after_filters.push(*self.after_filters)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.subclasses
|
def self.subclasses
|
||||||
|
|
Loading…
Reference in a new issue