surrounded-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Surrounded::Rails
2
2
 
3
- This sets up your ActiveRecord models to use [Surrounded](http://github.com/saturnflyer/surrounded).
3
+ This sets up your ActiveRecord models and ActionController controllers to use [Surrounded](http://github.com/saturnflyer/surrounded).
4
4
  Support for non-ActiveRecord will be added.
5
5
 
6
6
  ## Installation
@@ -19,7 +19,7 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
- TODO: Write usage instructions here
22
+ Add it to your Gemfile and start using it. See [Surrounded](https://github.com/saturnflyer/surrounded) for more details.
23
23
 
24
24
  ## Contributing
25
25
 
@@ -1,5 +1,5 @@
1
1
  module Surrounded
2
2
  module Rails
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -20,5 +20,9 @@ module Surrounded
20
20
  alias_method_chain :init_internals, :surrounded
21
21
  }
22
22
  end
23
+
24
+ initializer 'surrounded.action_controller' do |app|
25
+ ActionController::Base.send(:include, Surrounded)
26
+ end
23
27
  end
24
28
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "surrounded", "~> 0.4.1"
21
+ spec.add_dependency "surrounded", "~> 0.5.0"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: surrounded-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-02 00:00:00.000000000 Z
12
+ date: 2013-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: surrounded
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.1
21
+ version: 0.5.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.4.1
29
+ version: 0.5.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement