active_list 6.0.1 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,46 +0,0 @@
1
- module ActiveList
2
-
3
- module ActionPack
4
-
5
- module ActionController
6
-
7
- def self.included(base) #:nodoc:
8
- base.extend(ClassMethods)
9
- end
10
-
11
- module ClassMethods
12
-
13
- # Permits to define and generate methods to manage dynamic
14
- # table ActiveList
15
- def list(*args, &block)
16
- options = args.extract_options!
17
- options[:controller] = self
18
- args << options
19
- generator = ActiveList::Generator.new(*args, &block)
20
- class_eval(generator.controller_method_code, __FILE__, __LINE__)
21
- ActionView::Base.send(:class_eval, generator.view_method_code, __FILE__, __LINE__)
22
- end
23
-
24
- end
25
-
26
- end
27
-
28
- module ViewsHelper
29
-
30
- # Calls the generated view helper
31
- def list(*args, &block)
32
- options = args.extract_options!
33
- name = args.shift
34
- kontroller = self.controller.class
35
- begin
36
- helper_method = "_#{kontroller.controller_name}_#{__method__}_#{name || kontroller.controller_name}_tag".to_sym
37
- kontroller = kontroller.superclass
38
- end until self.respond_to?(helper_method)
39
- return self.send(helper_method, &block)
40
- end
41
-
42
- end
43
-
44
- end
45
-
46
- end
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the contacts controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the people controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/