dynarex-usersblog 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex-usersblog.rb +2 -1
  2. metadata +2 -2
@@ -29,7 +29,8 @@ class DynarexUsersBlog
29
29
  super()
30
30
  end
31
31
 
32
- def create_entry(blog_params={})
32
+ def create_entry(blog_params={}, user='')
33
+ switch_user user unless user.empty? or @current_user == user
33
34
  blog_params.merge!({user: @current_user})
34
35
  @user_blog.create_entry blog_params
35
36
  @master_blog.id = @user_blog.id.to_i - 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex-usersblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-08-30 00:00:00 +01:00
12
+ date: 2010-09-05 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency