Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Commit aedb5b4

Browse files
rsamoilovbrightredchilli
authored andcommitted
Rails 6.1 fix
1 parent 2026373 commit aedb5b4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [v0.12.1] - 2021-06-11
9+
### Fixed
10+
- Change the method to guess `rails_app_name` to work correctly across different Rails versions
11+
812
## [v0.12.0] - 2020-12-17
913
### Added
1014
- Bump version to fix incorrect tag

lib/we/call/connection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def rails_app_env
162162

163163
def rails_app_name
164164
if (defined? ::Rails) && !::Rails.application.nil?
165-
::Rails.application.class.parent_name.underscore.dasherize
165+
::Rails.application.class.name.deconstantize.underscore.dasherize
166166
end
167167
end
168168
end

lib/we/call/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module We
22
module Call
3-
VERSION = "0.12.0"
3+
VERSION = "0.12.1"
44
end
55
end

0 commit comments

Comments
 (0)