Sha256: a3c139c8285578a34ff869f4b63af4a33fdc5640e13c86fde5c5ffeddd9e2546

Contents?: true

Size: 587 Bytes

Versions: 1

Compression:

Stored size: 587 Bytes

Contents

require 'rad/http'
require 'rad/template'

[
  'flash',
  
  'helpers/basic_html_helper',  
  'helpers/form_helper',
  'helpers/model_helper',
  'helpers/javascript_helper',
  'helpers/flash_helper',
  'helpers/html_helper', 
  
  'processors/scoped_params',
  'processors/prepare_flash'
].each{|f| require "rad/html/#{f}"}

# Flash
rad.register :flash, scope: :cycle, depends_on: :environment do
  workspace = rad[:workspace]
  workspace.params.must_be.defined  
  Rad::Flash.new workspace.params.format
end

# Initialization
Rad::Config::DEFAULTS[:remote_link_formats] = ['js', 'json']

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 lib/rad/html.rb