st-rich 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +289 -0
- data/Rakefile +39 -0
- data/app/assets/images/rich/document-thumb.png +0 -0
- data/app/assets/images/rich/files.png +0 -0
- data/app/assets/images/rich/images.png +0 -0
- data/app/assets/images/rich/insert-many.png +0 -0
- data/app/assets/images/rich/insert-one.png +0 -0
- data/app/assets/images/rich/loading.png +0 -0
- data/app/assets/images/rich/menu-dash.png +0 -0
- data/app/assets/images/rich/plus-red.png +0 -0
- data/app/assets/images/rich/plus.png +0 -0
- data/app/assets/images/rich/rich.png +0 -0
- data/app/assets/images/rich/view-grid.png +0 -0
- data/app/assets/images/rich/view-list.png +0 -0
- data/app/assets/images/rich/x-red.png +0 -0
- data/app/assets/javascripts/rich/application.js +12 -0
- data/app/assets/javascripts/rich/base.js.erb +5 -0
- data/app/assets/javascripts/rich/browser/extensions.js +15 -0
- data/app/assets/javascripts/rich/browser/filebrowser.js +186 -0
- data/app/assets/javascripts/rich/browser/uploader.js +68 -0
- data/app/assets/javascripts/rich/editor/ckeditor_path.js.erb +1 -0
- data/app/assets/javascripts/rich/editor/rich_editor.js.erb +14 -0
- data/app/assets/javascripts/rich/editor/rich_picker.js +45 -0
- data/app/assets/stylesheets/rich/application.css.scss +365 -0
- data/app/assets/stylesheets/rich/editor.css +20 -0
- data/app/assets/stylesheets/rich/files.css +4 -0
- data/app/assets/stylesheets/rich/mixins/reset.css.scss +58 -0
- data/app/controllers/rich/files_controller.rb +82 -0
- data/app/helpers/rich/application_helper.rb +4 -0
- data/app/helpers/rich/files_helper.rb +13 -0
- data/app/inputs/rich_input.rb +19 -0
- data/app/inputs/rich_picker_input.rb +88 -0
- data/app/models/rich/rich_file.rb +75 -0
- data/app/views/layouts/rich/application.html.erb +14 -0
- data/app/views/rails_admin/main/_form_rich_picker.html.haml +7 -0
- data/app/views/rails_admin/main/_form_rich_text.html.haml +7 -0
- data/app/views/rich/files/_file.html.erb +11 -0
- data/app/views/rich/files/destroy.js.erb +1 -0
- data/app/views/rich/files/index.html.erb +38 -0
- data/app/views/rich/files/index.js.erb +1 -0
- data/app/views/rich/files/show.html.erb +1 -0
- data/config/locales/en.yml +19 -0
- data/config/locales/fr.yml +14 -0
- data/config/locales/it.yml +19 -0
- data/config/locales/nl.yml +14 -0
- data/config/locales/ru.yml +19 -0
- data/config/locales/sv.yml +14 -0
- data/config/locales/zh-CN.yml +19 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20111002142937_create_rich_rich_images.rb +17 -0
- data/db/migrate/20111117202133_add_uri_cache_to_rich_image.rb +5 -0
- data/db/migrate/20111201095829_refactor_image_to_file.rb +12 -0
- data/lib/generators/rich/install/install_generator.rb +34 -0
- data/lib/generators/rich/install/templates/rich.js +1 -0
- data/lib/generators/rich/install/templates/rich.rb.erb +125 -0
- data/lib/rich.rb +195 -0
- data/lib/rich/authorize.rb +7 -0
- data/lib/rich/backends/carrierwave.rb +78 -0
- data/lib/rich/backends/paperclip.rb +79 -0
- data/lib/rich/backends/rich_file_uploader.rb +55 -0
- data/lib/rich/engine.rb +26 -0
- data/lib/rich/integrations/legacy_formtastic.rb +50 -0
- data/lib/rich/rails_admin/config/fields/types/rich_editor.rb +34 -0
- data/lib/rich/rails_admin/config/fields/types/rich_picker.rb +45 -0
- data/lib/rich/utils/file_size_validator.rb +68 -0
- data/lib/rich/version.rb +3 -0
- data/lib/tasks/rich_tasks.rake +24 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/admin/dashboards.rb +38 -0
- data/test/dummy/app/admin/posts.rb +11 -0
- data/test/dummy/app/assets/javascripts/active_admin.js +2 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/javascripts/rich.js +1 -0
- data/test/dummy/app/assets/stylesheets/active_admin.css.scss +10 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/assets/stylesheets/rich/editor.css +20 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/posts_controller.rb +83 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/admin_user.rb +9 -0
- data/test/dummy/app/models/post.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.erb +29 -0
- data/test/dummy/app/views/posts/_formtastic_form.html.erb +17 -0
- data/test/dummy/app/views/posts/edit.html.erb +6 -0
- data/test/dummy/app/views/posts/index.html.erb +27 -0
- data/test/dummy/app/views/posts/new.html.erb +5 -0
- data/test/dummy/app/views/posts/show.html.erb +20 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +48 -0
- data/test/dummy/config/boot.rb +19 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +32 -0
- data/test/dummy/config/environments/production.rb +62 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/active_admin.rb +101 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +211 -0
- data/test/dummy/config/initializers/formtastic.rb +80 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/rich.rb +29 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/devise.en.yml +58 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +13 -0
- data/test/dummy/db/migrate/20111001122048_create_posts.rb +12 -0
- data/test/dummy/db/migrate/20111003150957_create_rich_rich_images.rb +17 -0
- data/test/dummy/db/migrate/20111014123344_devise_create_admin_users.rb +31 -0
- data/test/dummy/db/migrate/20111014143348_create_admin_notes.rb +16 -0
- data/test/dummy/db/migrate/20111014143349_move_admin_notes_to_comments.rb +25 -0
- data/test/dummy/db/migrate/20111117202523_add_uri_cache_to_rich_image.rb +5 -0
- data/test/dummy/db/migrate/20111201102914_refactor_image_to_file.rb +12 -0
- data/test/dummy/db/schema.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/admin_users.yml +11 -0
- data/test/dummy/test/fixtures/posts.yml +11 -0
- data/test/dummy/test/functional/posts_controller_test.rb +49 -0
- data/test/dummy/test/unit/admin_user_test.rb +7 -0
- data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/fixtures/rich/rich_images.yml +11 -0
- data/test/functional/rich/files_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/rich_test.rb +7 -0
- data/test/test_helper.rb +10 -0
- data/test/unit/helpers/rich/files_helper_test.rb +6 -0
- data/test/unit/rich/rich_image_test.rb +9 -0
- data/vendor/assets/images/ckeditor/plugins/MediaEmbed/icons/mediaembed.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/MediaEmbed/images/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/maximize/icons/maximize.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/hidpi/showblocks-rtl.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/hidpi/showblocks.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/showblocks-rtl.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/icons/showblocks.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/vendor/assets/images/ckeditor/plugins/widget/images/handle.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/mini.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/noimage.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/sprites.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/sprites_ie6.png +0 -0
- data/vendor/assets/images/ckeditor/skins/BootstrapCK/images/toolbar_start.gif +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/images/ckeditor/skins/moono/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +102 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +926 -0
- data/vendor/assets/javascripts/ckeditor/config.js +10 -0
- data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/id.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/si.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/MediaEmbed/plugin.js +65 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +178 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/dialog/dialog.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closebrackets.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/closetag.js +3 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/continuelist.js +1 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/edit/matchbrackets.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/foldcode/foldcode.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/autoFormatAll.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/format/formatting.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/match-highlighter.js +2 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/search.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/addon/search/searchcursor.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.js +188 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +187 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.modes.min.js +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.search-addons.min.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/css.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/htmlmixed.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/javascript.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/mode/xml.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/divarea/plugin.js +36 -0
- data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +24 -0
- data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/vendor/assets/javascripts/ckeditor/plugins/lineutils/plugin.js +933 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/af.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ar.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bg.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/bs.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/cs.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/cy.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/da.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/de.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/el.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-au.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en-gb.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/en.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/eo.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/es.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/et.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/eu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fa.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fo.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fr-ca.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/fr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/gl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/gu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/he.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/hu.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/is.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/it.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ja.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ka.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/km.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ko.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ku.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/lt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/lv.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/mk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/mn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ms.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/nb.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/nl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/no.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pt-br.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/pt.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ro.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ru.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sl.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sr-latn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/sv.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/th.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/tr.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/ug.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/uk.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/vi.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/zh-cn.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/lang/zh.js +8 -0
- data/vendor/assets/javascripts/ckeditor/plugins/maximize/plugin.js +301 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/richfile/plugin.js.erb +85 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/af.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ar.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bg.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/bs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/cs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/cy.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/da.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/de.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/el.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-au.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en-gb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/eo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/es.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/et.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/eu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fa.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fr-ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/fr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/gl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/gu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/he.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/hu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/id.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/is.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/it.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ja.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ka.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/km.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ko.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ku.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/lt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/lv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/mk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/mn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ms.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/nb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/nl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/no.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pt-br.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/pt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ro.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/si.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sq.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sr-latn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/sv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/th.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/tr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/tt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/ug.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/uk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/vi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/lang/zh.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/showblocks/plugin.js +153 -0
- data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/af.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ar.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/bs.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/cs.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/de.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/el.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-au.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/eo.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/es.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/eu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fo.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fr-ca.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/gl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/hu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/is.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/it.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ja.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ka.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ko.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ku.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/lv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ms.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/nl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/pt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ro.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sl.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/tr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/uk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/zh-cn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/lang/zh.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylescombo/plugin.js +186 -0
- data/vendor/assets/javascripts/ckeditor/plugins/stylesheetparser/plugin.js +152 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/dev/console.js +129 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/dev/contents.css +23 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/dev/widgetstyles.html +145 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/images/handle.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ar.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ca.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/cs.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/cy.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/de.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/el.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/en-gb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/en.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/eo.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/es.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fa.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/fr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/gl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/he.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/hr.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/hu.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/it.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ja.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/km.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ko.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/nb.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/nl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/no.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pt-br.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/pt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/ru.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/sl.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/sv.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/tt.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/uk.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/vi.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/zh-cn.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/lang/zh.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/widget/plugin.js +3684 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +74 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/README.md +26 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/dialog.css +616 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/editor.css +1088 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/dialog_sides_rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/mini.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/sprites.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/sprites_ie6.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/images/toolbar_start.gif +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/skin.js +7 -0
- data/vendor/assets/javascripts/ckeditor/skins/BootstrapCK/templates.css +54 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +111 -0
- data/vendor/assets/javascripts/fileuploader.js +1247 -0
- data/vendor/assets/stylesheets/ckeditor/contents.css +99 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.ckeditor.css +74 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.css +245 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +6 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/ambiance.css +76 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/blackboard.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/cobalt.css +18 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/eclipse.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/elegant.css +10 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/erlang-dark.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/lesser-dark.css +44 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/monokai.css +28 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/neat.css +9 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/night.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/rubyblue.css +21 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/solarized.css +207 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/twilight.css +25 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/vibrant-ink.css +27 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/codemirror/theme/xq-dark.css +46 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/widget/dev/contents.css +23 -0
- data/vendor/assets/stylesheets/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/dialog.css +616 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/editor.css +1088 -0
- data/vendor/assets/stylesheets/ckeditor/skins/BootstrapCK/templates.css +54 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/stylesheets/ckeditor/skins/moono/editor_iequirks.css +5 -0
- metadata +955 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<b>Name:</b>
|
5
|
+
<%= @post.name %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<b>Title:</b>
|
10
|
+
<%= @post.title %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<b>Content:</b>
|
15
|
+
<%= raw(@post.content) %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
|
19
|
+
<%= link_to 'Edit', edit_post_path(@post) %> |
|
20
|
+
<%= link_to 'Back', posts_path %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
if defined?(Bundler)
|
6
|
+
# If you precompile assets before deploying to production, use this line
|
7
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
8
|
+
# If you want your assets lazily compiled in production, use this line
|
9
|
+
# Bundler.require(:default, :assets, Rails.env)
|
10
|
+
end
|
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
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
+
config.encoding = "utf-8"
|
38
|
+
|
39
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
+
config.filter_parameters += [:password]
|
41
|
+
|
42
|
+
# Enable the asset pipeline
|
43
|
+
config.assets.enabled = true
|
44
|
+
|
45
|
+
# Version of your assets, change this if you want to expire all your assets
|
46
|
+
config.assets.version = '1.0'
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# require 'rubygems'
|
2
|
+
#
|
3
|
+
# # Set up gems listed in the Gemfile.
|
4
|
+
# ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
5
|
+
#
|
6
|
+
# require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
7
|
+
#
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'rubygems'
|
11
|
+
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
12
|
+
|
13
|
+
if File.exist?(gemfile)
|
14
|
+
ENV['BUNDLE_GEMFILE'] = gemfile
|
15
|
+
require 'bundler'
|
16
|
+
Bundler.setup
|
17
|
+
end
|
18
|
+
|
19
|
+
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
development:
|
7
|
+
adapter: sqlite3
|
8
|
+
database: db/development.sqlite3
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
# Warning: The database defined as "test" will be erased and
|
13
|
+
# re-generated from your development database when you run "rake".
|
14
|
+
# Do not set this db to the same as development or production.
|
15
|
+
test:
|
16
|
+
adapter: sqlite3
|
17
|
+
database: db/test.sqlite3
|
18
|
+
pool: 5
|
19
|
+
timeout: 5000
|
20
|
+
|
21
|
+
production:
|
22
|
+
adapter: sqlite3
|
23
|
+
database: db/development.sqlite3
|
24
|
+
pool: 5
|
25
|
+
timeout: 5000
|
@@ -0,0 +1,32 @@
|
|
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 web server 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_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Only use best-standards-support built into browsers
|
23
|
+
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
|
25
|
+
# Do not compress assets
|
26
|
+
config.assets.compress = false
|
27
|
+
|
28
|
+
# Expands the lines which load the assets
|
29
|
+
config.assets.debug = true
|
30
|
+
|
31
|
+
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
32
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# Code is not reloaded between requests
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Full error reports are disabled and caching is turned on
|
8
|
+
config.consider_all_requests_local = true
|
9
|
+
config.action_controller.perform_caching = true
|
10
|
+
|
11
|
+
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
+
config.serve_static_assets = true
|
13
|
+
|
14
|
+
# Compress JavaScripts and CSS
|
15
|
+
config.assets.compress = true
|
16
|
+
|
17
|
+
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
+
config.assets.compile = false
|
19
|
+
|
20
|
+
# Generate digests for assets URLs
|
21
|
+
config.assets.digest = true
|
22
|
+
|
23
|
+
#config.assets.initialize_on_precompile = false
|
24
|
+
|
25
|
+
# Defaults to Rails.root.join("public/assets")
|
26
|
+
# config.assets.manifest = YOUR_PATH
|
27
|
+
|
28
|
+
# Specifies the header that your server uses for sending files
|
29
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
30
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
31
|
+
|
32
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
33
|
+
# config.force_ssl = true
|
34
|
+
|
35
|
+
# See everything in the log (default is :info)
|
36
|
+
# config.log_level = :debug
|
37
|
+
|
38
|
+
# Use a different logger for distributed setups
|
39
|
+
# config.logger = SyslogLogger.new
|
40
|
+
|
41
|
+
# Use a different cache store in production
|
42
|
+
# config.cache_store = :mem_cache_store
|
43
|
+
|
44
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
45
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
46
|
+
|
47
|
+
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
48
|
+
config.assets.precompile += %w( active_admin.css active_admin.js )
|
49
|
+
|
50
|
+
# Disable delivery errors, bad email addresses will be ignored
|
51
|
+
# config.action_mailer.raise_delivery_errors = false
|
52
|
+
|
53
|
+
# Enable threaded mode
|
54
|
+
# config.threadsafe!
|
55
|
+
|
56
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
57
|
+
# the I18n.default_locale when a translation can not be found)
|
58
|
+
config.i18n.fallbacks = true
|
59
|
+
|
60
|
+
# Send deprecation notices to registered listeners
|
61
|
+
config.active_support.deprecation = :notify
|
62
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
33
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
34
|
+
# like if you have constraints or database-specific column types
|
35
|
+
# config.active_record.schema_format = :sql
|
36
|
+
|
37
|
+
# Print deprecation notices to the stderr
|
38
|
+
config.active_support.deprecation = :stderr
|
39
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
ActiveAdmin.setup do |config|
|
2
|
+
|
3
|
+
# == Site Title
|
4
|
+
#
|
5
|
+
# Set the title that is displayed on the main layout
|
6
|
+
# for each of the active admin pages.
|
7
|
+
#
|
8
|
+
config.site_title = "Dummy"
|
9
|
+
|
10
|
+
|
11
|
+
# == Default Namespace
|
12
|
+
#
|
13
|
+
# Set the default namespace each administration resource
|
14
|
+
# will be added to.
|
15
|
+
#
|
16
|
+
# eg:
|
17
|
+
# config.default_namespace = :hello_world
|
18
|
+
#
|
19
|
+
# This will create resources in the HelloWorld module and
|
20
|
+
# will namespace routes to /hello_world/*
|
21
|
+
#
|
22
|
+
# To set no namespace by default, use:
|
23
|
+
# config.default_namespace = false
|
24
|
+
#
|
25
|
+
# Default:
|
26
|
+
# config.default_namespace = :admin
|
27
|
+
|
28
|
+
|
29
|
+
# == User Authentication
|
30
|
+
#
|
31
|
+
# Active Admin will automatically call an authentication
|
32
|
+
# method in a before filter of all controller actions to
|
33
|
+
# ensure that there is a currently logged in admin user.
|
34
|
+
#
|
35
|
+
# This setting changes the method which Active Admin calls
|
36
|
+
# within the controller.
|
37
|
+
config.authentication_method = :authenticate_admin_user!
|
38
|
+
|
39
|
+
|
40
|
+
# == Current User
|
41
|
+
#
|
42
|
+
# Active Admin will associate actions with the current
|
43
|
+
# user performing them.
|
44
|
+
#
|
45
|
+
# This setting changes the method which Active Admin calls
|
46
|
+
# to return the currently logged in user.
|
47
|
+
config.current_user_method = :current_admin_user
|
48
|
+
|
49
|
+
|
50
|
+
# == Logging Out
|
51
|
+
#
|
52
|
+
# Active Admin displays a logout link on each screen. These
|
53
|
+
# settings configure the location and method used for the link.
|
54
|
+
#
|
55
|
+
# This setting changes the path where the link points to. If it's
|
56
|
+
# a string, the strings is used as the path. If it's a Symbol, we
|
57
|
+
# will call the method to return the path.
|
58
|
+
#
|
59
|
+
# Default:
|
60
|
+
# config.logout_link_path = :destroy_admin_user_session_path
|
61
|
+
|
62
|
+
# This setting changes the http method used when rendering the
|
63
|
+
# link. For example :get, :delete, :put, etc..
|
64
|
+
#
|
65
|
+
# Default:
|
66
|
+
# config.logout_link_method = :get
|
67
|
+
|
68
|
+
|
69
|
+
# == Admin Comments
|
70
|
+
#
|
71
|
+
# Admin comments allow you to add comments to any model for admin use
|
72
|
+
#
|
73
|
+
# Admin comments are enabled by default in the default
|
74
|
+
# namespace only. You can turn them on in a namesapce
|
75
|
+
# by adding them to the comments array.
|
76
|
+
#
|
77
|
+
# Default:
|
78
|
+
# config.allow_comments_in = [:admin]
|
79
|
+
|
80
|
+
|
81
|
+
# == Controller Filters
|
82
|
+
#
|
83
|
+
# You can add before, after and around filters to all of your
|
84
|
+
# Active Admin resources from here.
|
85
|
+
#
|
86
|
+
# config.before_filter :do_something_awesome
|
87
|
+
|
88
|
+
|
89
|
+
# == Register Stylesheets & Javascripts
|
90
|
+
#
|
91
|
+
# We recommend using the built in Active Admin layout and loading
|
92
|
+
# up your own stylesheets / javascripts to customize the look
|
93
|
+
# and feel.
|
94
|
+
#
|
95
|
+
# To load a stylesheet:
|
96
|
+
# config.register_stylesheet 'my_stylesheet.css'
|
97
|
+
#
|
98
|
+
# To load a javascript file:
|
99
|
+
# config.register_javascript 'my_javascript.js'
|
100
|
+
|
101
|
+
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,211 @@
|
|
1
|
+
# Use this hook to configure devise mailer, warden hooks and so forth. The first
|
2
|
+
# four configuration values can also be set straight in your models.
|
3
|
+
Devise.setup do |config|
|
4
|
+
# ==> Mailer Configuration
|
5
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
6
|
+
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
7
|
+
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
|
8
|
+
|
9
|
+
# Configure the class responsible to send e-mails.
|
10
|
+
# config.mailer = "Devise::Mailer"
|
11
|
+
|
12
|
+
# ==> ORM configuration
|
13
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
14
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
15
|
+
# available as additional gems.
|
16
|
+
require 'devise/orm/active_record'
|
17
|
+
|
18
|
+
# ==> Configuration for any authentication mechanism
|
19
|
+
# Configure which keys are used when authenticating a user. The default is
|
20
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
21
|
+
# authenticating a user, both parameters are required. Remember that those
|
22
|
+
# parameters are used only when authenticating and not when retrieving from
|
23
|
+
# session. If you need permissions, you should implement that in a before filter.
|
24
|
+
# You can also supply a hash where the value is a boolean determining whether
|
25
|
+
# or not authentication should be aborted when the value is not present.
|
26
|
+
# config.authentication_keys = [ :email ]
|
27
|
+
|
28
|
+
# Configure parameters from the request object used for authentication. Each entry
|
29
|
+
# given should be a request method and it will automatically be passed to the
|
30
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
31
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
32
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
33
|
+
# config.request_keys = []
|
34
|
+
|
35
|
+
# Configure which authentication keys should be case-insensitive.
|
36
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
37
|
+
# to authenticate or find a user. Default is :email.
|
38
|
+
config.case_insensitive_keys = [ :email ]
|
39
|
+
|
40
|
+
# Configure which authentication keys should have whitespace stripped.
|
41
|
+
# These keys will have whitespace before and after removed upon creating or
|
42
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
43
|
+
config.strip_whitespace_keys = [ :email ]
|
44
|
+
|
45
|
+
# Tell if authentication through request.params is enabled. True by default.
|
46
|
+
# config.params_authenticatable = true
|
47
|
+
|
48
|
+
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
49
|
+
# config.http_authenticatable = false
|
50
|
+
|
51
|
+
# If http headers should be returned for AJAX requests. True by default.
|
52
|
+
# config.http_authenticatable_on_xhr = true
|
53
|
+
|
54
|
+
# The realm used in Http Basic Authentication. "Application" by default.
|
55
|
+
# config.http_authentication_realm = "Application"
|
56
|
+
|
57
|
+
# It will change confirmation, password recovery and other workflows
|
58
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
59
|
+
# Does not affect registerable.
|
60
|
+
# config.paranoid = true
|
61
|
+
|
62
|
+
# ==> Configuration for :database_authenticatable
|
63
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
64
|
+
# using other encryptors, it sets how many times you want the password re-encrypted.
|
65
|
+
#
|
66
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
67
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
68
|
+
# a value less than 10 in other environments.
|
69
|
+
config.stretches = Rails.env.test? ? 1 : 10
|
70
|
+
|
71
|
+
# Setup a pepper to generate the encrypted password.
|
72
|
+
# config.pepper = "0194b8f97306177c7c2a5afe538016ae1f330ae691ebe4a34f003013fa8aaa3699045aace9d9e73be742eb4c0ac779b35a897fdd99472a96ffed55bd212354a1"
|
73
|
+
|
74
|
+
# ==> Configuration for :confirmable
|
75
|
+
# The time you want to give your user to confirm his account. During this time
|
76
|
+
# he will be able to access your application without confirming. Default is 0.days
|
77
|
+
# When confirm_within is zero, the user won't be able to sign in without confirming.
|
78
|
+
# You can use this to let your user access some features of your application
|
79
|
+
# without confirming the account, but blocking it after a certain period
|
80
|
+
# (ie 2 days).
|
81
|
+
# config.confirm_within = 2.days
|
82
|
+
|
83
|
+
# Defines which key will be used when confirming an account
|
84
|
+
# config.confirmation_keys = [ :email ]
|
85
|
+
|
86
|
+
# ==> Configuration for :rememberable
|
87
|
+
# The time the user will be remembered without asking for credentials again.
|
88
|
+
# config.remember_for = 2.weeks
|
89
|
+
|
90
|
+
# If true, a valid remember token can be re-used between multiple browsers.
|
91
|
+
# config.remember_across_browsers = true
|
92
|
+
|
93
|
+
# If true, extends the user's remember period when remembered via cookie.
|
94
|
+
# config.extend_remember_period = false
|
95
|
+
|
96
|
+
# If true, uses the password salt as remember token. This should be turned
|
97
|
+
# to false if you are not using database authenticatable.
|
98
|
+
config.use_salt_as_remember_token = true
|
99
|
+
|
100
|
+
# Options to be passed to the created cookie. For instance, you can set
|
101
|
+
# :secure => true in order to force SSL only cookies.
|
102
|
+
# config.cookie_options = {}
|
103
|
+
|
104
|
+
# ==> Configuration for :validatable
|
105
|
+
# Range for password length. Default is 6..128.
|
106
|
+
# config.password_length = 6..128
|
107
|
+
|
108
|
+
# Email regex used to validate email formats. It simply asserts that
|
109
|
+
# an one (and only one) @ exists in the given string. This is mainly
|
110
|
+
# to give user feedback and not to assert the e-mail validity.
|
111
|
+
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
112
|
+
|
113
|
+
# ==> Configuration for :timeoutable
|
114
|
+
# The time you want to timeout the user session without activity. After this
|
115
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
116
|
+
# config.timeout_in = 30.minutes
|
117
|
+
|
118
|
+
# ==> Configuration for :lockable
|
119
|
+
# Defines which strategy will be used to lock an account.
|
120
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
121
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
122
|
+
# config.lock_strategy = :failed_attempts
|
123
|
+
|
124
|
+
# Defines which key will be used when locking and unlocking an account
|
125
|
+
# config.unlock_keys = [ :email ]
|
126
|
+
|
127
|
+
# Defines which strategy will be used to unlock an account.
|
128
|
+
# :email = Sends an unlock link to the user email
|
129
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
130
|
+
# :both = Enables both strategies
|
131
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
132
|
+
# config.unlock_strategy = :both
|
133
|
+
|
134
|
+
# Number of authentication tries before locking an account if lock_strategy
|
135
|
+
# is failed attempts.
|
136
|
+
# config.maximum_attempts = 20
|
137
|
+
|
138
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
139
|
+
# config.unlock_in = 1.hour
|
140
|
+
|
141
|
+
# ==> Configuration for :recoverable
|
142
|
+
#
|
143
|
+
# Defines which key will be used when recovering the password for an account
|
144
|
+
# config.reset_password_keys = [ :email ]
|
145
|
+
|
146
|
+
# Time interval you can reset your password with a reset password key.
|
147
|
+
# Don't put a too small interval or your users won't have the time to
|
148
|
+
# change their passwords.
|
149
|
+
config.reset_password_within = 2.hours
|
150
|
+
|
151
|
+
# ==> Configuration for :encryptable
|
152
|
+
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
153
|
+
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
154
|
+
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
155
|
+
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
156
|
+
# REST_AUTH_SITE_KEY to pepper)
|
157
|
+
# config.encryptor = :sha512
|
158
|
+
|
159
|
+
# ==> Configuration for :token_authenticatable
|
160
|
+
# Defines name of the authentication token params key
|
161
|
+
# config.token_authentication_key = :auth_token
|
162
|
+
|
163
|
+
# If true, authentication through token does not store user in session and needs
|
164
|
+
# to be supplied on each request. Useful if you are using the token as API token.
|
165
|
+
# config.stateless_token = false
|
166
|
+
|
167
|
+
# ==> Scopes configuration
|
168
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
169
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
170
|
+
# are using only default views.
|
171
|
+
# config.scoped_views = false
|
172
|
+
|
173
|
+
# Configure the default scope given to Warden. By default it's the first
|
174
|
+
# devise role declared in your routes (usually :user).
|
175
|
+
# config.default_scope = :user
|
176
|
+
|
177
|
+
# Configure sign_out behavior.
|
178
|
+
# Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
|
179
|
+
# The default is true, which means any logout action will sign out all active scopes.
|
180
|
+
# config.sign_out_all_scopes = true
|
181
|
+
|
182
|
+
# ==> Navigation configuration
|
183
|
+
# Lists the formats that should be treated as navigational. Formats like
|
184
|
+
# :html, should redirect to the sign in page when the user does not have
|
185
|
+
# access, but formats like :xml or :json, should return 401.
|
186
|
+
#
|
187
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
188
|
+
# should add them to the navigational formats lists.
|
189
|
+
#
|
190
|
+
# The :"*/*" and "*/*" formats below is required to match Internet
|
191
|
+
# Explorer requests.
|
192
|
+
# config.navigational_formats = [:"*/*", "*/*", :html]
|
193
|
+
|
194
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
195
|
+
config.sign_out_via = :delete
|
196
|
+
|
197
|
+
# ==> OmniAuth
|
198
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
199
|
+
# up on your models and hooks.
|
200
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
201
|
+
|
202
|
+
# ==> Warden configuration
|
203
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
204
|
+
# change the failure app, you can configure them inside the config.warden block.
|
205
|
+
#
|
206
|
+
# config.warden do |manager|
|
207
|
+
# manager.failure_app = AnotherApp
|
208
|
+
# manager.intercept_401 = false
|
209
|
+
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
210
|
+
# end
|
211
|
+
end
|