Sha256: b186d774cc845b2327aca1257a9ef7b70d54ad61170240f0654d3963b8c82394

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

module CASino
  class Listener

    # include helpers to have the route path methods (like sessions_path)
    include CASino::Engine.routes.url_helpers

    def initialize(controller)
      @controller = controller
    end

    protected
    def assign(name, value)
      @controller.instance_variable_set("@#{name}", value)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
casino-3.0.4 app/listeners/casino/listener.rb
casino-2.0.7 app/listeners/casino/listener.rb
casino-3.0.3 app/listeners/casino/listener.rb
casino-3.0.2 app/listeners/casino/listener.rb
casino-3.0.1 app/listeners/casino/listener.rb
casino-3.0.0 app/listeners/casino/listener.rb
casino-3.0.0.pre.2 app/listeners/casino/listener.rb
casino-3.0.0.pre.1 app/listeners/casino/listener.rb
casino-2.0.6 app/listeners/casino/listener.rb
casino-2.0.5 app/listeners/casino/listener.rb
casino-2.0.4 app/listeners/casino/listener.rb
casino-2.0.3 app/listeners/casino/listener.rb
casino-2.0.2 app/listeners/casino/listener.rb
casino-2.0.1 app/listeners/casino/listener.rb
casino-2.0.0 app/listeners/casino/listener.rb