inherited_resources 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ # Version 1.0
2
+
1
3
  * responders was removed from InheritedResources core and is a dependency. To install it, please do:
2
4
 
3
5
  sudo gem install responders
@@ -16,7 +16,7 @@ This Inherited Resources branch is tested and compatible with Rails 2.3.x.
16
16
 
17
17
  Inherited Resources is available as gem on Gemcutter, so just run the following:
18
18
 
19
- sudo gem install inherited_resources --version=1.0
19
+ sudo gem install inherited_resources --version=1.0.3
20
20
 
21
21
  If you want it as plugin, just do:
22
22
 
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ begin
16
16
  s.homepage = "http://github.com/josevalim/inherited_resources"
17
17
  s.description = "Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important."
18
18
  s.authors = ['José Valim']
19
- s.files = FileList["[A-Z]*", "init.rb", "{lib}/**/*"]
19
+ s.files = FileList["[A-Z]*", "rails/init.rb", "{lib}/**/*"]
20
20
  s.add_dependency("responders", "~> 0.4.3")
21
21
  s.add_dependency("has_scope", "~> 0.4.2")
22
22
  end
@@ -3,26 +3,26 @@ module InheritedResources
3
3
  module Actions
4
4
 
5
5
  # GET /resources
6
- def index(&block)
7
- respond_with(*with_chain(collection), &block)
6
+ def index(options={}, &block)
7
+ respond_with(*(with_chain(collection) << options), &block)
8
8
  end
9
9
  alias :index! :index
10
10
 
11
11
  # GET /resources/1
12
- def show(&block)
13
- respond_with(*with_chain(resource), &block)
12
+ def show(options={}, &block)
13
+ respond_with(*(with_chain(resource) << options), &block)
14
14
  end
15
15
  alias :show! :show
16
16
 
17
17
  # GET /resources/new
18
- def new(&block)
19
- respond_with(*with_chain(build_resource), &block)
18
+ def new(options={}, &block)
19
+ respond_with(*(with_chain(build_resource) << options), &block)
20
20
  end
21
21
  alias :new! :new
22
22
 
23
23
  # GET /resources/1/edit
24
- def edit(&block)
25
- respond_with(*with_chain(resource), &block)
24
+ def edit(options={}, &block)
25
+ respond_with(*(with_chain(resource) << options), &block)
26
26
  end
27
27
  alias :edit! :edit
28
28
 
@@ -1,3 +1,3 @@
1
1
  module InheritedResources
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-06 00:00:00 +01:00
12
+ date: 2010-02-20 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -45,7 +45,6 @@ files:
45
45
  - MIT-LICENSE
46
46
  - README.rdoc
47
47
  - Rakefile
48
- - init.rb
49
48
  - lib/inherited_resources.rb
50
49
  - lib/inherited_resources/actions.rb
51
50
  - lib/inherited_resources/base.rb
@@ -62,6 +61,7 @@ files:
62
61
  - lib/inherited_resources/singleton_helpers.rb
63
62
  - lib/inherited_resources/url_helpers.rb
64
63
  - lib/inherited_resources/version.rb
64
+ - rails/init.rb
65
65
  has_rdoc: true
66
66
  homepage: http://github.com/josevalim/inherited_resources
67
67
  licenses: []