rails_extensions 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ class ActionController::Base
2
+ # "BlogController.new.process(request, response, method = :read_comment)"
3
+ class << self
4
+
5
+ def action_chain(name, *args)
6
+ actions = []
7
+ args.each do |a|
8
+ if a.is_a?(String) || a.is_a?(Symbol)
9
+ actions << a
10
+ elsif a.is_a?(Hash)
11
+ actions << "#{a[:controller].to_s.camelcase}.new.process(request, response, :#{a[:action]})"
12
+ end
13
+ end
14
+ x = %{
15
+ def #{name}
16
+ #{actions.join("\n ")}
17
+ end
18
+ }
19
+ puts x
20
+ class_eval(x)
21
+ end
22
+
23
+ end
24
+
25
+ end
@@ -2,4 +2,4 @@
2
2
  gem_name: rails_extensions
3
3
  package: rails_extensions
4
4
  project: magrathea
5
- version: 1.0.5
5
+ version: 1.0.6
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -13,6 +13,7 @@ autorequire:
13
13
  - m_active_record_validations
14
14
  - m_active_record_errors
15
15
  - m_active_record_base
16
+ - m_action_controller
16
17
  - m_abstract_request
17
18
  - rails_extensions
18
19
  - m_migration_model
@@ -25,7 +26,7 @@ autorequire:
25
26
  bindir: bin
26
27
  cert_chain: []
27
28
 
28
- date: 2008-01-22 00:00:00 -05:00
29
+ date: 2008-01-25 00:00:00 -05:00
29
30
  default_executable:
30
31
  dependencies: []
31
32
 
@@ -40,6 +41,7 @@ extra_rdoc_files: []
40
41
  files:
41
42
  - init.rb
42
43
  - lib/m_abstract_request.rb
44
+ - lib/m_action_controller.rb
43
45
  - lib/m_active_record_base.rb
44
46
  - lib/m_active_record_errors.rb
45
47
  - lib/m_active_record_validations.rb
@@ -48,6 +50,7 @@ files:
48
50
  - lib/m_migration_model.rb
49
51
  - lib/rails_extensions.rb
50
52
  - lib/tasks/rubyforge_config.yml
53
+ - rails_extensions-1.0.6.gem
51
54
  has_rdoc: false
52
55
  homepage:
53
56
  post_install_message: