forked from OpenNeo/impress
12 lines
245 B
Ruby
12 lines
245 B
Ruby
|
class ContributionObserver < ActiveRecord::Observer
|
||
|
def after_create(contribution)
|
||
|
controller.expire_fragment('outfits#new latest_contribution')
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def controller
|
||
|
@controller ||= ActionController::Base.new
|
||
|
end
|
||
|
end
|