artemk-ckeditor 3.4.4 → 3.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,9 @@ class CkeditorController < ApplicationController
5
5
 
6
6
  # GET /ckeditor/images
7
7
  def images
8
- @images = Ckeditor.image_model.find(:all, :order=>"id DESC")
9
-
8
+ user_id = current_user.id if (respond_to?(:current_user) && current_user)
9
+ @images = Ckeditor.image_model.find(:all, :order=>"id DESC", :conditions => {:user_id => user_id})
10
+
10
11
  respond_to do |format|
11
12
  format.html {}
12
13
  format.xml { render :xml=>@images }
@@ -1,7 +1,7 @@
1
1
  module Ckeditor
2
2
  module Version
3
3
  MAJOR = 3
4
- MINOR = 4
4
+ MINOR = 5
5
5
  RELEASE = 4
6
6
 
7
7
  def self.dup
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artemk-ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
+ - 5
8
9
  - 4
9
- - 4
10
- version: 3.4.4
10
+ version: 3.5.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Galeta