Sha256: fbf4ce5a531e5abe2986f81d9d69a8975f5d53a99f6385f81c597164677fcabe

Contents?: true

Size: 326 Bytes

Versions: 13

Compression:

Stored size: 326 Bytes

Contents

module Kms
  class FormCustomizationService
    cattr_accessor :resources do
      Hash.new {|h, key| h[key] = []}
    end

    # resource - resource class
    # fields - additional templates for resource form
    def self.register_templates(resource, *templates)
      resources[resource].concat templates
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kms-1.2.1 app/services/kms/form_customization_service.rb
kms-1.2.0 app/services/kms/form_customization_service.rb
kms-1.1.0 app/services/kms/form_customization_service.rb
kms-1.0.1 app/services/kms/form_customization_service.rb
kms-1.0.0 app/services/kms/form_customization_service.rb
kms-0.9.0 app/services/kms/form_customization_service.rb
kms-0.8.0 app/services/kms/form_customization_service.rb
kms-0.7.0 app/services/kms/form_customization_service.rb
kms-0.6.0 app/services/kms/form_customization_service.rb
kms-0.5.0 app/services/kms/form_customization_service.rb
kms-0.4.2 app/services/kms/form_customization_service.rb
kms-0.4.1 app/services/kms/form_customization_service.rb
kms-0.4.0 app/services/kms/form_customization_service.rb