Sha256: f7b0eb2fb8aea700378d24d6346471a59d9521034b1900c76ec55117eed201b8

Contents?: true

Size: 734 Bytes

Versions: 5

Compression:

Stored size: 734 Bytes

Contents

# TODO: - rename as AdminSetup
# Idea is to allow different configs of admin interface
# eg - I might have an "experimental" config with an
# option to hide links to github..
module Pwb
  # https://github.com/zilkey/active_hash
  class ClientSetup < ActiveJSON::Base
    # self.data =
    #   { "us":
    #     {
    #       "id": 1,
    #       "name": "US",
    #       "custom_field_1": "value1"
    #     }
    #     },
    #   { "canada":
    #     {
    #       "id": 2,
    #       "name": "Canada",
    #       "custom_field_2": "value2"
    #     }
    #     }

    set_root_path "#{Pwb::Engine.root}/config/client_setups"
    # set_filename "client_setups"
    use_multiple_files
    set_filenames "default", "us"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pwb-1.4.0 app/models/pwb/client_setup.rb
pwb-1.3.0 app/models/pwb/client_setup.rb
pwb-1.2.0 app/models/pwb/client_setup.rb
pwb-1.1.1 app/models/pwb/client_setup.rb
pwb-1.0.0 app/models/pwb/client_setup.rb