oldie_rails_models 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52aa4f6b35af732fb911c5f5f2a8318cd2ff4a79
4
- data.tar.gz: d3a14ac21ab731a748ea5de05884c6ce57754d83
3
+ metadata.gz: 0439b0210ab80095cae5d7c06341e6be12128046
4
+ data.tar.gz: 55fc5ef1f1ed26810be22ec5015e68a8ff7c1abe
5
5
  SHA512:
6
- metadata.gz: 1b474421f4f5efd14a859826542888a5319dec1fa8ef883feeb0976cdcf54a6802a27765a7928437a1b74935273993461123ef7b1a10b9f2b555ba09c1d2cdd4
7
- data.tar.gz: 7e1473b0a4bfce0f328e620ed78a3eccc5ca12e24c817e5f170b3076cbe2744817853bc486df028d239afc56e0380e9152f2442b65b99bce220ffec94030ef30
6
+ metadata.gz: 99737753452cfa0fa7a6d8a56a0576b01374f4019bffa5d1d0258b7860a839d7e9265a3b764f7cbf6bb0be9be0ef0233a02fd8c5df6bcd576a443e2ccd87c425
7
+ data.tar.gz: d97de5a8f06a4257c8b59b176151a0374cae0ed7ad443a3382b97fffc6a08b62cc86f8693e5c09c11ea8761023e44496b4da66bc37f5a9c271c3326e4159f18d
@@ -28,14 +28,16 @@ module OldieRailsModels
28
28
 
29
29
  end
30
30
 
31
- ActiveSupport.on_load(:active_record) do
32
- extend OldieRailsModels
33
- end
31
+ if defined? Rails
32
+ ActiveSupport.on_load(:active_record) do
33
+ extend OldieRailsModels
34
+ end
34
35
 
35
- ActiveSupport.on_load(:action_controller) do
36
- module ActionController
37
- module UrlWriter
38
- include Rails.application.routes.url_helpers
36
+ ActiveSupport.on_load(:action_controller) do
37
+ module ActionController
38
+ module UrlWriter
39
+ include Rails.application.routes.url_helpers
40
+ end
39
41
  end
40
42
  end
41
43
  end
@@ -1,3 +1,3 @@
1
1
  module OldieRailsModels
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oldie_rails_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dubovskoy