Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/epom_rails/acts_as_advertiser.rb,
lib/epom_rails/acts_as_placement.rb,
lib/epom_rails/acts_as_campaign.rb,
lib/epom_rails/acts_as_analytic.rb,
lib/epom_rails/acts_as_banner.rb,
lib/epom_rails/acts_as_zone.rb,
lib/epom_rails/acts_as_site.rb,
lib/epom_rails/acts_as.rb
Class Method Summary collapse
- .acts_as_advertiser(params = {}) ⇒ Object
- .acts_as_analytic(params = {}) ⇒ Object
- .acts_as_banner(params = {}) ⇒ Object
- .acts_as_campaign(params = {}) ⇒ Object
- .acts_as_placement(params = {}) ⇒ Object
- .acts_as_site(params = {}) ⇒ Object
- .acts_as_zone(params = {}) ⇒ Object
Class Method Details
.acts_as_advertiser(params = {}) ⇒ Object
3 4 5 6 |
# File 'lib/epom_rails/acts_as_advertiser.rb', line 3 def self.acts_as_advertiser(params = {}) EpomRails.config.advertiser[:model] = self acts_as(Epom::Advertiser, params) end |
.acts_as_analytic(params = {}) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/epom_rails/acts_as_analytic.rb', line 2 def self.acts_as_analytic(params = {}) EpomRails.config.analytic[:model] = self extend EpomRails override_config(Epom::Analytic, params) define_analytic_from_epom end |
.acts_as_banner(params = {}) ⇒ Object
3 4 5 6 |
# File 'lib/epom_rails/acts_as_banner.rb', line 3 def self.(params = {}) EpomRails.config.[:model] = self acts_as(Epom::Banner, params) end |
.acts_as_campaign(params = {}) ⇒ Object
3 4 5 6 |
# File 'lib/epom_rails/acts_as_campaign.rb', line 3 def self.acts_as_campaign(params = {}) EpomRails.config.campaign[:model] = self acts_as(Epom::Campaign, params) end |
.acts_as_placement(params = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/epom_rails/acts_as_placement.rb', line 3 def self.acts_as_placement(params = {}) EpomRails.config.placement[:model] = self acts_as(Epom::Placement, params) define_key_method end |