simple-image-uploader 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ module SimpleImageUploader
11
11
  def generate_image_everything
12
12
  # Copy the controllers for user, sessions and password_reset
13
13
  copy_file "images_controller.rb", "app/controllers/images_controller.rb"
14
+ copy_file "application_controller.rb", "app/controllers/application_controller.rb"
14
15
  copy_file "file_uploader.rb", "app/uploaders/file_uploader.rb"
15
16
  copy_file "image.rb", "app/models/image.rb"
16
17
  directory "images", "app/views/images/"
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -1,7 +1,7 @@
1
1
  module Simple
2
2
  module Image
3
3
  module Uploader
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-image-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,6 +23,7 @@ extensions: []
23
23
  extra_rdoc_files: []
24
24
  files:
25
25
  - lib/rails/generators/simple_image_uploader/simple_image_uploader_generator.rb
26
+ - lib/rails/generators/simple_image_uploader/templates/application_controller.rb
26
27
  - lib/rails/generators/simple_image_uploader/templates/file_uploader.rb
27
28
  - lib/rails/generators/simple_image_uploader/templates/image.rb
28
29
  - lib/rails/generators/simple_image_uploader/templates/images/_form.html.erb