Sha256: 79533e611d3a0dba6250228b44763c6c24b197bdc8ebe6a1a4e20d041123cff6

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

require 'satis/version'
require 'satis/engine'
require 'satis/configuration'

require 'view_component'
require 'browser'
require 'browser/aliases'

Browser::Base.include(Browser::Aliases)

module Satis
  class << self
    attr_reader :config

    def setup
      @config = Configuration.new
      yield config
    end

    def confirm_before_leave?
      return false if config.nil?

      config.confirm_before_leave
    end

    def submit_on_enter?
      return true if config.nil?

      config.submit_on_enter
    end

    def add_helper(name, component)
      Satis::Helpers::Container.add_helper(name, component)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
satis-1.0.67 lib/satis.rb
satis-1.0.66 lib/satis.rb