action-hero 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/action_hero/version.rb +1 -1
- data/lib/dispatcher_ext.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6057b9222d7571f299d78e40cadd431c2ddbcaa3
|
|
4
|
+
data.tar.gz: ff3b6a775b8cd1f562de753884d1bbc243642c00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: beb75d606792a82bfceb31f638512da2d1d050c3b9cf98d1a0e5d94fd7fa37a1ea84662673e4e3062199eb4501b1d5e87bf4383c0267dcbf9b5d8c9ac399c34f
|
|
7
|
+
data.tar.gz: 13bd2fd605606fe06bcac1e5b1f779b64ee9b67b22b444d695094c41ce43f58e90f7390580204f46c73ae4647faf6cc4ab339c2056c8953c935316d6b58d88a2
|
data/README.md
CHANGED
|
@@ -153,7 +153,7 @@ Define a controller with a show action method and define an action class for the
|
|
|
153
153
|
# app/actions/things/index.rb
|
|
154
154
|
module Things
|
|
155
155
|
class Index
|
|
156
|
-
include ActionHero::
|
|
156
|
+
include ActionHero::Action
|
|
157
157
|
|
|
158
158
|
def call
|
|
159
159
|
...
|
|
@@ -163,7 +163,7 @@ Define a controller with a show action method and define an action class for the
|
|
|
163
163
|
|
|
164
164
|
### Controller Methods Available in Action Class
|
|
165
165
|
|
|
166
|
-
The following methods
|
|
166
|
+
The following methods forward from the the action class to the controller.
|
|
167
167
|
|
|
168
168
|
* action_name
|
|
169
169
|
* env
|
data/lib/action_hero/version.rb
CHANGED
data/lib/dispatcher_ext.rb
CHANGED
|
@@ -3,8 +3,6 @@ module ActionDispatch
|
|
|
3
3
|
class RouteSet
|
|
4
4
|
class Dispatcher
|
|
5
5
|
|
|
6
|
-
private
|
|
7
|
-
|
|
8
6
|
def controller(params, default_controller=true)
|
|
9
7
|
if params && params.key?(:controller)
|
|
10
8
|
controller_param = params[:controller]
|
|
@@ -15,6 +13,8 @@ module ActionDispatch
|
|
|
15
13
|
raise ActionController::RoutingError, e.message, e.backtrace if default_controller
|
|
16
14
|
end
|
|
17
15
|
|
|
16
|
+
private
|
|
17
|
+
|
|
18
18
|
def controller_reference(controller_param, action_param)
|
|
19
19
|
const_name = @controller_class_names[controller_param] ||= "#{controller_param.camelize}Controller"
|
|
20
20
|
ActiveSupport::Dependencies.constantize(const_name)
|