rosa-build/lib/plugins/rosa_presenter/activation.rb

16 lines
345 B
Ruby

# -*- encoding : utf-8 -*-
# This code based on https://github.com/ihoka/viewtastic
module RosaPresenter
module Activation
def self.included(klass) # :nodoc:
klass.prepend_before_filter :activate_rosa_presenter
end
private
def activate_rosa_presenter
RosaPresenter::Base.controller = self
end
end
end