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

Commit

Permalink
Rails 6.1 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Jun 11, 2021
1 parent 2026373 commit e17e0b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.12.1] - 2021-06-11
### Fixed
- Change the method to guess `rails_app_name` to work correctly across different Rails versions

## [v0.12.0] - 2020-12-17
### Added
- Bump version to fix incorrect tag
Expand Down
2 changes: 1 addition & 1 deletion lib/we/call/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def rails_app_env

def rails_app_name
if (defined? ::Rails) && !::Rails.application.nil?
::Rails.application.class.parent_name.underscore.dasherize
::Rails.application.class.name.deconstantize.underscore.dasherize
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/we/call/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module We
module Call
VERSION = "0.12.0"
VERSION = "0.12.1"
end
end

0 comments on commit e17e0b4

Please sign in to comment.