module Tito::Eventable
Public Class Methods
included(base)
click to toggle source
# File lib/tito/eventable.rb, line 4 def self.included(base) base.extend ClassMethods base.class_eval do attr_accessor :event_slug attr_accessor :account_slug end end
Public Instance Methods
post_path()
click to toggle source
# File lib/tito/eventable.rb, line 16 def post_path [path_prefix, self.class.resource_path].join("/") end
put_path()
click to toggle source
# File lib/tito/eventable.rb, line 12 def put_path [path_prefix, self.class.resource_path, id].join("/") end