redactor-rails 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ class RedactorRails::PicturesController < ApplicationController
11
11
  @picture.data = RedactorRails::Http.normalize_param(file, request)
12
12
 
13
13
  if @picture.save
14
- render :text => "<img src=#{@picture.url}/>"
14
+ render :text => { :filelink => @picture.url }.to_json
15
15
  else
16
16
  render :nothing => true
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module RedactorRails
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redactor-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sammy