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 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 .'
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "2.1"
3
+ VERSION = "2.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: '2.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: