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