module UniformNotifier class Base def self.active? false end def self.inline_notify( data ) return unless active? # For compatibility to the old protocol data = { :title => data } if data.is_a?(String) _inline_notify( data ) end def self.out_of_channel_notify( data ) return unless active? # For compatibility to the old protocol data = { :title => data } if data.is_a?(String) _out_of_channel_notify(data) end protected def self._inline_notify( data ) end def self._out_of_channel_notify( data ) end def self.wrap_js_association( code ) <<-CODE CODE end end end