Skip to content

Commit c0fb18e

Browse files
committed
Merge branch 'develop'
2 parents 937e636 + 3ccd4e4 commit c0fb18e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/cells/plugins/core/user_cell.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
module Plugins
22
module Core
33
class UserCell < Plugins::Core::Cell
4+
include Devise::Controllers::Helpers
5+
46
def dropdown
57
render
68
end
79

810
private
911

1012
def value
11-
data&.[]('user_id') || @options[:default_value]
13+
data&.[]('user_id') || @options[:default_value] || current_user.id
1214
end
1315

1416
def render_select

lib/cortex/plugins/core/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Cortex
22
module Plugins
33
module Core
4-
VERSION = '0.10.1'
4+
VERSION = '0.10.2'
55
end
66
end
77
end

0 commit comments

Comments
 (0)