lib/generators/ckeditor/templates/ckeditor.rb in ckeditor-4.0.4 vs lib/generators/ckeditor/templates/ckeditor.rb in ckeditor-4.0.6

- old
+ new

@@ -1,21 +1,19 @@ # Use this hook to configure ckeditor -if Object.const_defined?("Ckeditor") - Ckeditor.setup do |config| - # ==> ORM configuration - # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and - # :mongoid (bson_ext recommended) by default. Other ORMs may be - # available as additional gems. - require "ckeditor/orm/<%= options[:orm] %>" +Ckeditor.setup do |config| + # ==> ORM configuration + # Load and configure the ORM. Supports :active_record (default), :mongo_mapper and + # :mongoid (bson_ext recommended) by default. Other ORMs may be + # available as additional gems. + require "ckeditor/orm/<%= options[:orm] %>" - # Allowed image file types for upload. - # Set to nil or [] (empty array) for all file types - # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"] + # Allowed image file types for upload. + # Set to nil or [] (empty array) for all file types + # config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"] - # Allowed attachment file types for upload. - # Set to nil or [] (empty array) for all file types - # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"] + # Allowed attachment file types for upload. + # Set to nil or [] (empty array) for all file types + # config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"] - # Setup authorization to be run as a before filter - # config.authorize_with :cancan - end + # Setup authorization to be run as a before filter + # config.authorize_with :cancan end