Sha256: 84ea244c830c60afc9eed0f42bc836a5329bd32f9ce7c8944550f3dd16f4c36f

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

module PageletRails::Concerns::Tags
  extend ActiveSupport::Concern

  included do
    helper_method :identified_by
    helper_method :trigger_change
  end

  def trigger_change tag = nil
    @trigger_change ||= []
    if tag.present?
      @trigger_change << tag
    end
    @trigger_change
  end

  def identified_by tag = nil
    @identified_by ||= []
    if tag.present?
      @identified_by << tag
    end
    @identified_by
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pagelet_rails-0.2.2 lib/pagelet_rails/concerns/tags.rb
pagelet_rails-0.2.1 lib/pagelet_rails/concerns/tags.rb
pagelet_rails-0.2.0 lib/pagelet_rails/concerns/tags.rb
pagelet_rails-0.1.8 lib/pagelet_rails/concerns/tags.rb