Sha256: 5a7c00d6639b3ff04e48dfdccaefad02897addcbadfe8de1f741e87dc35351f4

Contents?: true

Size: 146 Bytes

Versions: 7

Compression:

Stored size: 146 Bytes

Contents

class ActiveRecord::Base 

  def self.acts_as_zone(params = {})
  	EpomRails.config.zone[:model] = self
    acts_as(Epom::Zone, params)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
epom_rails-1.4.4 lib/epom_rails/acts_as_zone.rb
epom_rails-1.4.2 lib/epom_rails/acts_as_zone.rb
epom_rails-1.4.1 lib/epom_rails/acts_as_zone.rb
epom_rails-1.4.0 lib/epom_rails/acts_as_zone.rb
epom_rails-1.3.6 lib/epom_rails/acts_as_zone.rb
epom_rails-1.3.5 lib/epom_rails/acts_as_zone.rb
epom_rails-1.0.0 lib/epom_rails/acts_as_zone.rb