module ActiveTree

require_relative “active_tree/builders/”

read www.postgresqltutorial.com/postgresql-schema/

Constants

VERSION

Attributes

active_tree_models[RW]
options[RW]

Public Class Methods

active_tree_options() click to toggle source
# File lib/active_tree.rb, line 35
def self.active_tree_options
        @options ||= begin
        path = Rails.root.join("config", "active_tree.yml").to_s
        if File.exist?(path)
                YAML.load(ERB.new(File.read(path)).result)
        else
                    {
                        table_name: "active_tree_models",
                        jwt_secret: "",
                        jwt_encryption: "HS256"
                    }
        end
    end
end
env() click to toggle source
# File lib/active_tree.rb, line 50
def self.env
    @env ||= ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
end