Skip to content

Commit

Permalink
fix: railtie loading to prevent calling methods that have not yet bee…
Browse files Browse the repository at this point in the history
…n defined (#38)
  • Loading branch information
bibendi authored Oct 1, 2024
1 parent 7bfa9c0 commit 1af0fff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
)
```

### Fixed

- Railtie loading to prevent calling methods that have not yet been defined

## 0.12.0 - 2023-07-28

### Added
Expand Down Expand Up @@ -48,7 +52,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- Adapters now should use method `Yabeda.collect!` instead of manual calling of every collector block.
- Adapters now should use method `Yabeda.collect!` instead of manual calling of every collector block.

## 0.9.0 - 2021-05-07

Expand Down
3 changes: 2 additions & 1 deletion lib/yabeda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
require "yabeda/dsl"
require "yabeda/tags"
require "yabeda/errors"
require "yabeda/railtie" if defined?(Rails)

# Extendable framework for collecting and exporting metrics from Ruby apps
module Yabeda
Expand Down Expand Up @@ -148,3 +147,5 @@ def reset!
end
end
end

require "yabeda/railtie" if defined?(Rails)

0 comments on commit 1af0fff

Please sign in to comment.