Module: Eventable
- Defined in:
- lib/eventable.rb
Overview
this version of eventable is meant to add event-like features to 1 model, so we store it in one place
Defined Under Namespace
Modules: Model Classes: CategoriesController, Categorization, Category, Categorylist, CategorylistsController, EventableController, EventsController, OpeningPeriod, OpeningPeriodlist, OpeningPeriodlistsController, OpeningPeriodsController, OpeningTime, OpeningTimelist, OpeningTimelistsController, OpeningTimesController, Price, Pricelist, PricelistsController, PricesController, ProgramItem, Review
Class Attribute Summary collapse
-
.model_name ⇒ Object
Returns the value of attribute model_name.
Class Method Summary collapse
-
.model ⇒ Object
the model that’s been made eventable by acts_as_event.
Class Attribute Details
.model_name ⇒ Object
Returns the value of attribute model_name.
6 7 8 |
# File 'lib/eventable.rb', line 6 def model_name @model_name end |
Class Method Details
.model ⇒ Object
the model that’s been made eventable by acts_as_event
10 11 12 13 14 15 |
# File 'lib/eventable.rb', line 10 def self.model ( model_name || (detect_model_name if Rails.env.development?) ).constantize end |