Sha256: 3fc63f3307829ef1c8ee547c275e851e4e93c9ea67e051c540040f739b0c6276

Contents?: true

Size: 274 Bytes

Versions: 6

Compression:

Stored size: 274 Bytes

Contents

module Amalgam
  module Models
    module Templatable
      extend ActiveSupport::Concern

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgam-2.1.4.1 lib/amalgam/models/templatable.rb
amalgam-2.1.4 lib/amalgam/models/templatable.rb
amalgam-2.1.3.1 lib/amalgam/models/templatable.rb
amalgam-2.1.3 lib/amalgam/models/templatable.rb
amalgam-2.1.2 lib/amalgam/models/templatable.rb
amalgam-2.1.1 lib/amalgam/models/templatable.rb