manage_meta 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/lib/manage_meta.rb CHANGED
@@ -1,6 +1,2 @@
1
1
  require 'manage_meta/manage_meta'
2
- if defined? Rails
3
- class ApplicationController <ActionController::Base
4
- include ManageMeta
5
- end
6
- end
2
+ require 'manage_meta/railtie' if defined? Rails
@@ -0,0 +1,8 @@
1
+ module ManageMeta
2
+ class Railtie < Rails::Railtie
3
+ config.after_initialize do
4
+ require 'application_controller'
5
+ ::ApplicationController.send(:include, ManageMeta)
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: manage_meta
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.10
5
+ version: 0.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Howard
@@ -24,6 +24,7 @@ extra_rdoc_files: []
24
24
 
25
25
  files:
26
26
  - lib/manage_meta/manage_meta.rb
27
+ - lib/manage_meta/railtie.rb
27
28
  - lib/manage_meta.rb
28
29
  - test/manage_meta_test.rb
29
30
  - MIT-LICENSE