Module: Amalgam::Models::Templatable

Extended by:
ActiveSupport::Concern
Defined in:
lib/amalgam/models/templatable.rb

Instance Method Summary collapse

Instance Method Details

#template_keysObject



6
7
8
9
10
11
12
13
# File 'lib/amalgam/models/templatable.rb', line 6

def template_keys
  keys = []
  keys << self.slug
  self.groups.each do |g|
    keys << '@' + g.name
  end
  keys
end