Skip to content

Commit fdec6ab

Browse files
committed
[*] Smart Actions - Fix broken Smart Actions having a name containing emoji without custom endpoint
1 parent 6d21118 commit fdec6ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Change Log
22

33
## [Unreleased]
4+
### Fixed
5+
- Smart Actions - Fix broken Smart Actions having a name containing emoji without custom endpoint.
46

57
## RELEASE 3.0.1 - 2019-04-29
68
### Fixed
7-
- Smart Action - Fix crash on server start.
9+
- Smart Actions - Fix crash on server start.
810

911
## RELEASE 3.0.0 - 2019-04-22
1012

app/models/forest_liana/model/action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(attributes = {})
5959
"(Smart Actions fields without name are ignored)."
6060
end
6161

62-
dasherized_name = @name.downcase.gsub!(" ", "-") unless @name.nil?
62+
dasherized_name = ActiveSupport::Inflector.parameterize(@name) unless @name.nil?
6363
@endpoint ||= "forest/actions/#{dasherized_name}" unless dasherized_name.nil?
6464
@http_method ||= "POST"
6565
@redirect ||= nil

0 commit comments

Comments
 (0)