require 'crystal/http' require 'crystal/template' [ 'flash', 'view_helpers/basic_html_helper', 'view_helpers/form_helper', 'view_helpers/model_helper', 'view_helpers/javascript_helper', 'view_helpers/view_url_helper', 'controller_helpers/flash_helper', 'controller_helpers/controller_url_helper', 'processors/scoped_params', 'processors/prepare_flash' ].each{|f| require "crystal/html/#{f}"} # Flash crystal.register :flash, :scope => :cycle, :depends_on => :environment do workspace = crystal[:workspace] workspace.params.must_be.defined Crystal::Flash.new workspace.params.format end # Initialization Crystal::Config::DEFAULTS['remote_link_formats'] = ['js', 'json']