inline_forms 2.1 → 2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/inline_forms +3 -4
- data/lib/inline_forms/version.rb +1 -1
- metadata +1 -1
data/bin/inline_forms
CHANGED
@@ -281,9 +281,8 @@ module InlineForms
|
|
281
281
|
end
|
282
282
|
USER_MODEL
|
283
283
|
|
284
|
-
say "- Install ckeditor/carrierwave..."
|
285
|
-
|
286
|
-
run "bundle exec rails generate ckeditor:install --orm=active_record --backend=carrierwave" unless dry_run?
|
284
|
+
# say "- Install ckeditor/carrierwave..."
|
285
|
+
# run "bundle exec rails generate ckeditor:install --orm=active_record --backend=carrierwave" unless dry_run?
|
287
286
|
|
288
287
|
say "- Create ckeditor config.js"
|
289
288
|
copy_file "lib/app/assets/javascripts/ckeditor/config.js", "#{app_name}/app/assets/javascripts/ckeditor/config.js"
|
@@ -455,7 +454,7 @@ module InlineForms
|
|
455
454
|
insert_into_file "#{app_name}/config/application.rb", ' config.autoload_paths += %W(#{config.root}/app/models/ckeditor)' + "\n", :after => "modules you want to be autoloadable.\n" unless dry_run?
|
456
455
|
|
457
456
|
say "- Adding cancan authorization to ckeditor"
|
458
|
-
gsub_file "#{app_name}/config/initializers/ckeditor.rb", "# config.authorize_with :cancan", "config.authorize_with :cancan"
|
457
|
+
gsub_file "#{app_name}/config/initializers/ckeditor.rb", "# config.authorize_with :cancan", "config.authorize_with :cancan" if File.exists?("#{app_name}/config/initializers/ckeditor.rb")
|
459
458
|
|
460
459
|
say "- Capify..."
|
461
460
|
run 'capify .'
|
data/lib/inline_forms/version.rb
CHANGED