Skip to content

Commit b3e5c31

Browse files
committed
update Railtie insert
1 parent c605ef5 commit b3e5c31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ rdoc/*
33
*.gem
44
.bundle
55
.rvmrc
6-
*/*.swp
6+
*.swp

lib/geocoder/railtie.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Railtie < Rails::Railtie
1818

1919
class Railtie
2020
def self.insert
21-
if ENV['RAILS_GROUPS'].to_s != 'assets' and defined?(::ActiveRecord)
21+
if defined?(::ActiveRecord)
2222
::ActiveRecord::Base.extend(Model::ActiveRecord)
2323
end
2424
end

0 commit comments

Comments
 (0)