File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/models/forest_liana/model Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
3
## [ Unreleased]
4
+ ### Fixed
5
+ - Smart Actions - Fix broken Smart Actions having a name containing emoji without custom endpoint.
4
6
5
7
## RELEASE 3.0.1 - 2019-04-29
6
8
### Fixed
7
- - Smart Action - Fix crash on server start.
9
+ - Smart Actions - Fix crash on server start.
8
10
9
11
## RELEASE 3.0.0 - 2019-04-22
10
12
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def initialize(attributes = {})
59
59
"(Smart Actions fields without name are ignored)."
60
60
end
61
61
62
- dasherized_name = @name . downcase . gsub! ( " " , "-" ) unless @name . nil?
62
+ dasherized_name = ActiveSupport :: Inflector . parameterize ( @name ) unless @name . nil?
63
63
@endpoint ||= "forest/actions/#{ dasherized_name } " unless dasherized_name . nil?
64
64
@http_method ||= "POST"
65
65
@redirect ||= nil
You can’t perform that action at this time.
0 commit comments