responders 0.2 → 0.4
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.
- data/CHANGELOG.rdoc +1 -1
- data/README.rdoc +6 -1
- data/lib/responders/version.rb +2 -2
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -36,6 +36,10 @@ A set of responders modules to dry up your Rails 3 app:
|
|
36
36
|
|
37
37
|
== Configuring your own responder
|
38
38
|
|
39
|
+
The first step is instal responders gem and configure it in your application:
|
40
|
+
|
41
|
+
sudo gem install responders
|
42
|
+
|
39
43
|
Responders only provides a set of modules, to use them, you have to create your own
|
40
44
|
responder. This can be done in an initializer for example:
|
41
45
|
|
@@ -46,7 +50,8 @@ responder. This can be done in an initializer for example:
|
|
46
50
|
|
47
51
|
== Generator
|
48
52
|
|
49
|
-
This gem also includes a responders controller generator, so your scaffold can be customized
|
53
|
+
This gem also includes a responders controller generator, so your scaffold can be customized
|
54
|
+
to use respond_with instead of default respond_to blocks just by configuring your environment:
|
50
55
|
|
51
56
|
config.generators do |g|
|
52
57
|
g.scaffold_controller = :responders_controller
|
data/lib/responders/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Responders
|
2
|
-
VERSION = "0.
|
3
|
-
end
|
2
|
+
VERSION = "0.4".freeze
|
3
|
+
end
|