Sha256: be9670472f7ae082198289bc07a23c908a8a03dd3648d3b1491b5bf9e19de0d0

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

module Impressionist
  module SetUpAssociation

    def self.included(base)
      base.attr_accessible(:impressionable_type,:impressionable_id,
      :user_id,:controller_name,:action_name,:view_name,:request_hash,
      :ip_address,:session_hash,:message,:referrer)

      base.belongs_to(:impressionable, :polymorphic => true)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
impressionist-1.4.1 lib/impressionist/set_up_association.rb
impressionist-1.4.0 lib/impressionist/set_up_association.rb