Sha256: 58fecc11ed6f0bfe2fe5549f0d61a387a6950dde1e7980119587820c119cb60d

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

require "enju_event/engine"

module EnjuEvent
  def self.included(base)
    base.extend(ClassMethods)
  end

  module ClassMethods
    def enju_event
      include EnjuEvent::InstanceMethods
    end
  end

  module InstanceMethods
    def get_event
      @event = Event.find(params[:event_id]) if params[:event_id]
    end
  end
end

ActionController::Base.send(:include, EnjuEvent)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_event-0.1.17 lib/enju_event.rb
enju_event-0.1.17.pre27 lib/enju_event.rb
enju_event-0.1.17.pre26 lib/enju_event.rb
enju_event-0.1.17.pre25 lib/enju_event.rb
enju_event-0.1.17.pre24 lib/enju_event.rb
enju_event-0.1.17.pre23 lib/enju_event.rb
enju_event-0.1.17.pre22 lib/enju_event.rb