Sha256: 256c982557021f60d165e460315634fe1547c9f9133c1226ce598f68d87737cb

Contents?: true

Size: 161 Bytes

Versions: 4

Compression:

Stored size: 161 Bytes

Contents

class ActiveRecord::Base 

  def self.acts_as_placement(params = {})
  	EpomRails.config.placement[:model] = self
    acts_as(Epom::Placement, params)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
epom_rails-1.3.6 lib/epom_rails/acts_as_placement.rb
epom_rails-1.3.5 lib/epom_rails/acts_as_placement.rb
epom_rails-1.3.2 lib/epom_rails/acts_as_placement.rb
epom_rails-1.0.0 lib/epom_rails/acts_as_placement.rb