Module: PageletRails::Concerns::Tags

Extended by:
ActiveSupport::Concern
Defined in:
lib/pagelet_rails/concerns/tags.rb

Instance Method Summary collapse

Instance Method Details

#identified_by(tag = nil) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/pagelet_rails/concerns/tags.rb', line 17

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

#trigger_change(tag = nil) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/pagelet_rails/concerns/tags.rb', line 9

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