alchemy_cms 2.0.pre2 → 2.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -1
- data/Gemfile +3 -0
- data/Rakefile +16 -14
- data/{alchemy.gemspec → alchemy_cms.gemspec} +1 -1
- data/app/models/message.rb +1 -1
- data/app/views/elements/_searchresult_view.html.erb +1 -1
- data/config/initializers/fast_gettext.rb +1 -1
- data/config/routes.rb +3 -0
- data/lib/alchemy/version.rb +1 -1
- data/lib/{alchemy.rb → alchemy_cms.rb} +0 -0
- data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +2 -2
- data/lib/rails/templates/alchemy.rb +1 -1
- data/spec/alchemy_spec.rb +7 -0
- data/spec/config_spec.rb +7 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/alchemy/config.yml +199 -0
- data/spec/dummy/config/alchemy/elements.yml +91 -0
- data/spec/dummy/config/alchemy/page_layouts.yml +29 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/schema.rb +267 -0
- data/spec/dummy/log/production.log +0 -0
- data/spec/dummy/log/server.log +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/images/alchemy/ajax_loader.gif +0 -0
- data/spec/dummy/public/images/alchemy/alchemy-logo.png +0 -0
- data/spec/dummy/public/images/alchemy/flags.png +0 -0
- data/spec/dummy/public/images/alchemy/gui/navi-tab.png +0 -0
- data/spec/dummy/public/images/alchemy/gui/shading.png +0 -0
- data/spec/dummy/public/images/alchemy/gui/shading_90.png +0 -0
- data/spec/dummy/public/images/alchemy/gui/toggle.png +0 -0
- data/spec/dummy/public/images/alchemy/icons.png +0 -0
- data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow.gif +0 -0
- data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow_bg.gif +0 -0
- data/spec/dummy/public/images/alchemy/jquery-sb/select_arrow_bg_hover.gif +0 -0
- data/spec/dummy/public/images/alchemy/jquery-ui/ui-icons_666666_256x240.png +0 -0
- data/spec/dummy/public/images/alchemy/placeholder.png +0 -0
- data/spec/dummy/public/images/alchemy/swfupload/browse_button.png +0 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.element_editor_selector.js +88 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.growler.js +44 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.image_cropper.js +56 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.js +892 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.link_overlay.js +221 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.page_sorter.js +42 -0
- data/spec/dummy/public/javascripts/alchemy/alchemy.preview.js +145 -0
- data/spec/dummy/public/javascripts/alchemy/jquery-ui.js +428 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.Jcrop.min.js +246 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.dialogextend.min.js +8 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.in-place-edit.js +171 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.js +18 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.rails.js +315 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.sb.min.js +14 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.scrollTo-1.4.2-min.js +11 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.ui.nestedSortable.js +291 -0
- data/spec/dummy/public/javascripts/alchemy/jquery.ui.tabspaging.js +281 -0
- data/spec/dummy/public/javascripts/alchemy/swfupload/fileprogress.js +203 -0
- data/spec/dummy/public/javascripts/alchemy/swfupload/handlers.js +171 -0
- data/spec/dummy/public/javascripts/alchemy/swfupload/queue.js +98 -0
- data/spec/dummy/public/javascripts/alchemy/swfupload/swfupload.js +980 -0
- data/spec/dummy/public/javascripts/alchemy/swfupload/swfupload.swf +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/jquery.tinymce.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/langs/de.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/langs/en.js +223 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/license.txt +504 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/editor_plugin.js +43 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/langs/de.js +4 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/alchemy_link/langs/en.js +4 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/fullscreen/editor_plugin.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/fullscreen/fullscreen.htm +109 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css +402 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/inlinepopups/template.htm +387 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/lists/editor_plugin.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/editor_plugin.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/js/pastetext.js +36 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/js/pasteword.js +51 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/langs/de_dlg.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/langs/en_dlg.js +5 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/pastetext.htm +27 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/paste/pasteword.htm +21 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/cell.htm +180 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/cell.css +17 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/row.css +25 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/css/table.css +13 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/editor_plugin.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/cell.js +319 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/merge_cells.js +27 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/row.js +237 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/js/table.js +450 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/langs/de_dlg.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/langs/en_dlg.js +75 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/merge_cells.htm +32 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/row.htm +158 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/plugins/table/table.htm +188 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/about.htm +52 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/anchor.htm +26 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/charmap.htm +51 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/color_picker.htm +74 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/image.htm +80 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/flash.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/iframe.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/trans.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/video.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/about.js +73 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/anchor.js +42 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/charmap.js +355 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/color_picker.js +329 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/image.js +247 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/link.js +153 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/js/source_editor.js +56 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/de.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/de_dlg.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/en.js +68 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/langs/en_dlg.js +54 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/link.htm +57 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/shortcuts.htm +47 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/content.css +47 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/dialog.css +117 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/default/ui.css +214 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/content.css +23 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/dialog.css +105 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/highcontrast/ui.css +102 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/content.css +46 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/advanced/source_editor.htm +25 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/themes/simple/langs/de.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/tiny_mce.js +1 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/tiny_mce_popup.js +5 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/editable_selects.js +70 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/form_utils.js +210 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/mctabs.js +162 -0
- data/spec/dummy/public/javascripts/alchemy/tiny_mce/utils/validate.js +252 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/public/stylesheets/alchemy/Jcrop.gif +0 -0
- data/spec/dummy/public/stylesheets/alchemy/alchemy.css +3629 -0
- data/spec/dummy/public/stylesheets/alchemy/alchemy_tinymce_content.css +94 -0
- data/spec/dummy/public/stylesheets/alchemy/alchemy_tinymce_dialog.css +415 -0
- data/spec/dummy/public/stylesheets/alchemy/default/img/tabs.gif +0 -0
- data/spec/dummy/public/stylesheets/alchemy/elements.css +900 -0
- data/spec/dummy/public/stylesheets/alchemy/flags.css +1 -0
- data/spec/dummy/public/stylesheets/alchemy/ie6.css +18 -0
- data/spec/dummy/public/stylesheets/alchemy/jquery-ui-1.8.7.alchemy.css +2023 -0
- data/spec/dummy/public/stylesheets/alchemy/jquery.Jcrop.css +35 -0
- data/spec/dummy/public/stylesheets/alchemy/jquery.sb.css +244 -0
- data/spec/dummy/public/stylesheets/alchemy/standard_set.css +374 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/integration/security_spec.rb +25 -0
- data/spec/spec_helper.rb +40 -0
- metadata +371 -8
@@ -0,0 +1,29 @@
|
|
1
|
+
# == This file defines the page_layouts for new pages.
|
2
|
+
#
|
3
|
+
# Please make your own page_layouts for your app in your own Rails.root/config/alchemy/page_layouts.yml file.
|
4
|
+
#
|
5
|
+
# === DSL:
|
6
|
+
# - name: String # The name of the layout used for views and inside the database. You can render a layout with the render_page_layout(name) helper.
|
7
|
+
# unique: Bool # Pass true and the user can only choose this layout once inside a language tree.
|
8
|
+
# hide: Bool # Pass true to hide this layout from the user.
|
9
|
+
# elements: Array # A list of element names that can be placed on this layout i.e. [text, picture]. Elements are defined inside the elements.yml file.
|
10
|
+
# autogenerate: Array # A list of element names that are autogenerated after creating the Page.
|
11
|
+
# layoutpage: Bool # Layoutpages are outside the normal pagetree and can be used to place "global" language independent Elements.
|
12
|
+
# cache: Bool # Pass false to disable the caching for this pages.
|
13
|
+
# feed: Bool # Pass true to enable a RSS feed of news elements from this page.
|
14
|
+
# redirects_to_external: Bool # Pass true to disable normal page rendering and redirect to a external page instead.
|
15
|
+
# controller: controller_name # Controller to use instead of the default PagesController
|
16
|
+
# action: action_name # Controllers action to use instead of the default PagesController#show
|
17
|
+
#
|
18
|
+
# === Translate page layout names
|
19
|
+
#
|
20
|
+
# Page layout names are passed through the I18n library. So you can translate them in your config/locales language yml file.
|
21
|
+
#
|
22
|
+
# Example:
|
23
|
+
#
|
24
|
+
# de:
|
25
|
+
# alchemy:
|
26
|
+
# page_layout_names:
|
27
|
+
# contact: Kontakt
|
28
|
+
# search: Suche
|
29
|
+
#
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "active_model/railtie"
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_view/railtie"
|
7
|
+
require "action_mailer/railtie"
|
8
|
+
|
9
|
+
Bundler.require
|
10
|
+
require "alchemy_cms"
|
11
|
+
|
12
|
+
module Dummy
|
13
|
+
class Application < Rails::Application
|
14
|
+
# Settings in config/environments/* take precedence over those specified here.
|
15
|
+
# Application configuration should go into files in config/initializers
|
16
|
+
# -- all .rb files in that directory are automatically loaded.
|
17
|
+
|
18
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
+
|
21
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
+
|
25
|
+
# Activate observers that should always be running.
|
26
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
+
|
28
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
+
|
32
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
+
# config.i18n.default_locale = :de
|
35
|
+
|
36
|
+
# JavaScript files you want as :defaults (application.js is always included).
|
37
|
+
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
38
|
+
|
39
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
40
|
+
config.encoding = "utf-8"
|
41
|
+
|
42
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
43
|
+
config.filter_parameters += [:password]
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
development:
|
4
|
+
adapter: sqlite3
|
5
|
+
database: db/development.sqlite3
|
6
|
+
pool: 5
|
7
|
+
timeout: 5000
|
8
|
+
|
9
|
+
# Warning: The database defined as "test" will be erased and
|
10
|
+
# re-generated from your development database when you run "rake".
|
11
|
+
# Do not set this db to the same as development or production.
|
12
|
+
test:
|
13
|
+
adapter: sqlite3
|
14
|
+
database: db/test.sqlite3
|
15
|
+
pool: 5
|
16
|
+
timeout: 5000
|
17
|
+
|
18
|
+
production:
|
19
|
+
adapter: sqlite3
|
20
|
+
database: db/production.sqlite3
|
21
|
+
pool: 5
|
22
|
+
timeout: 5000
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the webserver when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Log error messages when you accidentally call methods on nil.
|
10
|
+
config.whiny_nils = true
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_view.debug_rjs = true
|
15
|
+
config.action_controller.perform_caching = false
|
16
|
+
|
17
|
+
# Don't care if the mailer can't send
|
18
|
+
config.action_mailer.raise_delivery_errors = false
|
19
|
+
|
20
|
+
# Print deprecation notices to the Rails logger
|
21
|
+
config.active_support.deprecation = :log
|
22
|
+
|
23
|
+
# Only use best-standards-support built into browsers
|
24
|
+
config.action_dispatch.best_standards_support = :builtin
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The production environment is meant for finished, "live" apps.
|
5
|
+
# Code is not reloaded between requests
|
6
|
+
config.cache_classes = true
|
7
|
+
|
8
|
+
# Full error reports are disabled and caching is turned on
|
9
|
+
config.consider_all_requests_local = false
|
10
|
+
config.action_controller.perform_caching = true
|
11
|
+
|
12
|
+
# Specifies the header that your server uses for sending files
|
13
|
+
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
+
|
15
|
+
# For nginx:
|
16
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
+
|
18
|
+
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
+
# just comment this out and Rails will serve the files
|
20
|
+
|
21
|
+
# See everything in the log (default is :info)
|
22
|
+
# config.log_level = :debug
|
23
|
+
|
24
|
+
# Use a different logger for distributed setups
|
25
|
+
# config.logger = SyslogLogger.new
|
26
|
+
|
27
|
+
# Use a different cache store in production
|
28
|
+
# config.cache_store = :mem_cache_store
|
29
|
+
|
30
|
+
# Disable Rails's static asset server
|
31
|
+
# In production, Apache or nginx will already do this
|
32
|
+
config.serve_static_assets = false
|
33
|
+
|
34
|
+
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
+
|
37
|
+
# Disable delivery errors, bad email addresses will be ignored
|
38
|
+
# config.action_mailer.raise_delivery_errors = false
|
39
|
+
|
40
|
+
# Enable threaded mode
|
41
|
+
# config.threadsafe!
|
42
|
+
|
43
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
44
|
+
# the I18n.default_locale when a translation can not be found)
|
45
|
+
config.i18n.fallbacks = true
|
46
|
+
|
47
|
+
# Send deprecation notices to registered listeners
|
48
|
+
config.active_support.deprecation = :notify
|
49
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Log error messages when you accidentally call methods on nil.
|
11
|
+
config.whiny_nils = true
|
12
|
+
|
13
|
+
# Show full error reports and disable caching
|
14
|
+
config.consider_all_requests_local = true
|
15
|
+
config.action_controller.perform_caching = false
|
16
|
+
|
17
|
+
# Raise exceptions instead of rendering exception templates
|
18
|
+
config.action_dispatch.show_exceptions = false
|
19
|
+
|
20
|
+
# Disable request forgery protection in test environment
|
21
|
+
config.action_controller.allow_forgery_protection = false
|
22
|
+
|
23
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
+
# The :test delivery method accumulates sent emails in the
|
25
|
+
# ActionMailer::Base.deliveries array.
|
26
|
+
config.action_mailer.delivery_method = :test
|
27
|
+
|
28
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
+
# like if you have constraints or database-specific column types
|
31
|
+
# config.active_record.schema_format = :sql
|
32
|
+
|
33
|
+
# Print deprecation notices to the stderr
|
34
|
+
config.active_support.deprecation = :stderr
|
35
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = '1d681b0cf4a636962917a7ec5c29f3dda857a05b4e1b640f23663d77e47271f1aa75d3daac044ecb4e9a800f2e40b47c9cf94af9579ed72463ad2372fd038583'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => "welcome#index"
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id(.:format)))'
|
58
|
+
end
|
@@ -0,0 +1,267 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your
|
6
|
+
# database schema. If you need to create the application database on another
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
+
#
|
11
|
+
# It's strongly recommended to check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(:version => 20110711142057) do
|
14
|
+
|
15
|
+
create_table "attachments", :force => true do |t|
|
16
|
+
t.string "name"
|
17
|
+
t.string "filename"
|
18
|
+
t.string "content_type"
|
19
|
+
t.integer "size"
|
20
|
+
t.integer "creator_id"
|
21
|
+
t.integer "updater_id"
|
22
|
+
t.datetime "created_at"
|
23
|
+
t.datetime "updated_at"
|
24
|
+
end
|
25
|
+
|
26
|
+
create_table "cells", :force => true do |t|
|
27
|
+
t.integer "page_id"
|
28
|
+
t.string "name"
|
29
|
+
t.datetime "created_at"
|
30
|
+
t.datetime "updated_at"
|
31
|
+
end
|
32
|
+
|
33
|
+
create_table "contents", :force => true do |t|
|
34
|
+
t.string "name"
|
35
|
+
t.string "essence_type"
|
36
|
+
t.integer "essence_id"
|
37
|
+
t.integer "element_id"
|
38
|
+
t.integer "position"
|
39
|
+
t.datetime "created_at"
|
40
|
+
t.datetime "updated_at"
|
41
|
+
t.integer "creator_id"
|
42
|
+
t.integer "updater_id"
|
43
|
+
end
|
44
|
+
|
45
|
+
add_index "contents", ["element_id", "position"], :name => "index_contents_on_element_id_and_position"
|
46
|
+
|
47
|
+
create_table "elements", :force => true do |t|
|
48
|
+
t.string "name"
|
49
|
+
t.integer "position"
|
50
|
+
t.integer "page_id"
|
51
|
+
t.boolean "public", :default => true
|
52
|
+
t.boolean "folded", :default => false
|
53
|
+
t.boolean "unique", :default => false
|
54
|
+
t.datetime "created_at"
|
55
|
+
t.datetime "updated_at"
|
56
|
+
t.integer "creator_id"
|
57
|
+
t.integer "updater_id"
|
58
|
+
t.integer "cell_id"
|
59
|
+
end
|
60
|
+
|
61
|
+
add_index "elements", ["page_id", "position"], :name => "index_elements_on_page_id_and_position"
|
62
|
+
|
63
|
+
create_table "elements_pages", :id => false, :force => true do |t|
|
64
|
+
t.integer "element_id"
|
65
|
+
t.integer "page_id"
|
66
|
+
end
|
67
|
+
|
68
|
+
create_table "essence_audios", :force => true do |t|
|
69
|
+
t.integer "attachment_id"
|
70
|
+
t.integer "width", :default => 400
|
71
|
+
t.integer "height", :default => 300
|
72
|
+
t.boolean "show_eq", :default => true
|
73
|
+
t.boolean "show_navigation", :default => true
|
74
|
+
t.integer "creator_id"
|
75
|
+
t.integer "updater_id"
|
76
|
+
t.datetime "created_at"
|
77
|
+
t.datetime "updated_at"
|
78
|
+
end
|
79
|
+
|
80
|
+
create_table "essence_dates", :force => true do |t|
|
81
|
+
t.datetime "date"
|
82
|
+
t.integer "creator_id"
|
83
|
+
t.integer "updater_id"
|
84
|
+
t.datetime "created_at"
|
85
|
+
t.datetime "updated_at"
|
86
|
+
end
|
87
|
+
|
88
|
+
create_table "essence_files", :force => true do |t|
|
89
|
+
t.integer "attachment_id"
|
90
|
+
t.string "title"
|
91
|
+
t.string "css_class"
|
92
|
+
t.integer "creator_id"
|
93
|
+
t.integer "updater_id"
|
94
|
+
t.datetime "created_at"
|
95
|
+
t.datetime "updated_at"
|
96
|
+
end
|
97
|
+
|
98
|
+
create_table "essence_flashes", :force => true do |t|
|
99
|
+
t.integer "attachment_id"
|
100
|
+
t.integer "width", :default => 400
|
101
|
+
t.integer "height", :default => 300
|
102
|
+
t.string "player_version", :default => "9.0.28"
|
103
|
+
t.integer "creator_id"
|
104
|
+
t.integer "updater_id"
|
105
|
+
t.datetime "created_at"
|
106
|
+
t.datetime "updated_at"
|
107
|
+
end
|
108
|
+
|
109
|
+
create_table "essence_htmls", :force => true do |t|
|
110
|
+
t.text "source"
|
111
|
+
t.integer "creator_id"
|
112
|
+
t.integer "updater_id"
|
113
|
+
t.datetime "created_at"
|
114
|
+
t.datetime "updated_at"
|
115
|
+
end
|
116
|
+
|
117
|
+
create_table "essence_pictures", :force => true do |t|
|
118
|
+
t.integer "picture_id"
|
119
|
+
t.string "caption"
|
120
|
+
t.string "title"
|
121
|
+
t.string "alt_tag"
|
122
|
+
t.string "link"
|
123
|
+
t.string "link_class_name"
|
124
|
+
t.string "link_title"
|
125
|
+
t.string "css_class"
|
126
|
+
t.string "link_target"
|
127
|
+
t.integer "creator_id"
|
128
|
+
t.integer "updater_id"
|
129
|
+
t.datetime "created_at"
|
130
|
+
t.datetime "updated_at"
|
131
|
+
t.string "crop_from"
|
132
|
+
t.string "crop_size"
|
133
|
+
t.string "render_size"
|
134
|
+
end
|
135
|
+
|
136
|
+
create_table "essence_richtexts", :force => true do |t|
|
137
|
+
t.text "body"
|
138
|
+
t.text "stripped_body"
|
139
|
+
t.boolean "do_not_index", :default => false
|
140
|
+
t.boolean "public"
|
141
|
+
t.integer "creator_id"
|
142
|
+
t.integer "updater_id"
|
143
|
+
t.datetime "created_at"
|
144
|
+
t.datetime "updated_at"
|
145
|
+
end
|
146
|
+
|
147
|
+
create_table "essence_texts", :force => true do |t|
|
148
|
+
t.text "body"
|
149
|
+
t.string "link"
|
150
|
+
t.string "link_title"
|
151
|
+
t.string "link_class_name"
|
152
|
+
t.boolean "public", :default => false
|
153
|
+
t.boolean "do_not_index", :default => false
|
154
|
+
t.string "link_target"
|
155
|
+
t.integer "creator_id"
|
156
|
+
t.integer "updater_id"
|
157
|
+
t.datetime "created_at"
|
158
|
+
t.datetime "updated_at"
|
159
|
+
end
|
160
|
+
|
161
|
+
create_table "essence_videos", :force => true do |t|
|
162
|
+
t.integer "attachment_id"
|
163
|
+
t.integer "width"
|
164
|
+
t.integer "height"
|
165
|
+
t.boolean "allow_fullscreen", :default => true
|
166
|
+
t.boolean "auto_play", :default => false
|
167
|
+
t.boolean "show_navigation", :default => true
|
168
|
+
t.integer "creator_id"
|
169
|
+
t.integer "updater_id"
|
170
|
+
t.datetime "created_at"
|
171
|
+
t.datetime "updated_at"
|
172
|
+
end
|
173
|
+
|
174
|
+
create_table "folded_pages", :force => true do |t|
|
175
|
+
t.integer "page_id"
|
176
|
+
t.integer "user_id"
|
177
|
+
t.boolean "folded", :default => false
|
178
|
+
end
|
179
|
+
|
180
|
+
create_table "languages", :force => true do |t|
|
181
|
+
t.string "name"
|
182
|
+
t.string "code"
|
183
|
+
t.string "frontpage_name"
|
184
|
+
t.string "page_layout", :default => "intro"
|
185
|
+
t.boolean "public", :default => false
|
186
|
+
t.datetime "created_at"
|
187
|
+
t.datetime "updated_at"
|
188
|
+
t.integer "creator_id"
|
189
|
+
t.integer "updater_id"
|
190
|
+
t.boolean "default", :default => false
|
191
|
+
end
|
192
|
+
|
193
|
+
add_index "languages", ["code"], :name => "index_languages_on_code"
|
194
|
+
|
195
|
+
create_table "pages", :force => true do |t|
|
196
|
+
t.string "name"
|
197
|
+
t.string "urlname"
|
198
|
+
t.string "title"
|
199
|
+
t.string "language_code"
|
200
|
+
t.boolean "language_root", :limit => 255
|
201
|
+
t.string "page_layout"
|
202
|
+
t.text "meta_keywords"
|
203
|
+
t.text "meta_description"
|
204
|
+
t.integer "lft"
|
205
|
+
t.integer "rgt"
|
206
|
+
t.integer "parent_id"
|
207
|
+
t.integer "depth"
|
208
|
+
t.boolean "visible", :default => false
|
209
|
+
t.boolean "public", :default => false
|
210
|
+
t.boolean "locked", :default => false
|
211
|
+
t.integer "locked_by"
|
212
|
+
t.boolean "restricted", :default => false
|
213
|
+
t.boolean "robot_index", :default => true
|
214
|
+
t.boolean "robot_follow", :default => true
|
215
|
+
t.boolean "sitemap", :default => true
|
216
|
+
t.boolean "layoutpage", :default => false
|
217
|
+
t.datetime "created_at"
|
218
|
+
t.datetime "updated_at"
|
219
|
+
t.integer "creator_id"
|
220
|
+
t.integer "updater_id"
|
221
|
+
t.integer "language_id"
|
222
|
+
end
|
223
|
+
|
224
|
+
add_index "pages", ["language_id"], :name => "index_pages_on_language_id"
|
225
|
+
add_index "pages", ["parent_id", "lft"], :name => "index_pages_on_parent_id_and_lft"
|
226
|
+
add_index "pages", ["urlname"], :name => "index_pages_on_urlname"
|
227
|
+
|
228
|
+
create_table "pictures", :force => true do |t|
|
229
|
+
t.string "name"
|
230
|
+
t.string "image_filename"
|
231
|
+
t.integer "image_width"
|
232
|
+
t.integer "image_height"
|
233
|
+
t.datetime "created_at"
|
234
|
+
t.datetime "updated_at"
|
235
|
+
t.integer "creator_id"
|
236
|
+
t.integer "updater_id"
|
237
|
+
end
|
238
|
+
|
239
|
+
create_table "users", :force => true do |t|
|
240
|
+
t.string "firstname"
|
241
|
+
t.string "lastname"
|
242
|
+
t.string "login"
|
243
|
+
t.string "email"
|
244
|
+
t.string "gender"
|
245
|
+
t.string "role"
|
246
|
+
t.string "language"
|
247
|
+
t.string "crypted_password", :limit => 128, :default => "", :null => false
|
248
|
+
t.string "password_salt", :limit => 128, :default => "", :null => false
|
249
|
+
t.integer "login_count", :default => 0, :null => false
|
250
|
+
t.integer "failed_login_count", :default => 0, :null => false
|
251
|
+
t.datetime "last_request_at"
|
252
|
+
t.datetime "current_login_at"
|
253
|
+
t.datetime "last_login_at"
|
254
|
+
t.string "current_login_ip"
|
255
|
+
t.string "last_login_ip"
|
256
|
+
t.string "persistence_token", :null => false
|
257
|
+
t.string "single_access_token", :null => false
|
258
|
+
t.string "perishable_token", :null => false
|
259
|
+
t.datetime "created_at"
|
260
|
+
t.datetime "updated_at"
|
261
|
+
t.integer "creator_id"
|
262
|
+
t.integer "updater_id"
|
263
|
+
end
|
264
|
+
|
265
|
+
add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
|
266
|
+
|
267
|
+
end
|