rails_extensions 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +45 -40
- data/lib/m_active_record_associatioins.rb +0 -33
metadata
CHANGED
@@ -1,20 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: rails_extensions
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
- lib
|
11
|
-
- lib
|
12
|
-
- lib
|
13
|
-
- lib/tasks
|
14
|
-
email:
|
15
|
-
homepage:
|
16
|
-
rubyforge_project: magrathea
|
17
|
-
description: "rails_extensions was developed by: markbates"
|
4
|
+
version: 1.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- markbates
|
18
8
|
autorequire:
|
19
9
|
- rails_extensions
|
20
10
|
- m_migration_model
|
@@ -23,35 +13,33 @@ autorequire:
|
|
23
13
|
- m_active_record_validations
|
24
14
|
- m_active_record_errors
|
25
15
|
- m_active_record_base
|
26
|
-
- m_active_record_associatioins
|
27
16
|
- m_abstract_request
|
28
17
|
- rails_extensions
|
29
18
|
- m_migration_model
|
30
19
|
- m_form_tag_helper
|
31
20
|
- m_cookies
|
32
21
|
- m_active_record_validations
|
22
|
+
- m_active_record_errors
|
33
23
|
- m_active_record_base
|
34
|
-
- m_active_record_associatioins
|
35
24
|
- m_abstract_request
|
36
|
-
default_executable:
|
37
25
|
bindir: bin
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
26
|
+
cert_chain: []
|
27
|
+
|
28
|
+
date: 2008-01-22 00:00:00 -05:00
|
29
|
+
default_executable:
|
30
|
+
dependencies: []
|
31
|
+
|
32
|
+
description: "rails_extensions was developed by: markbates"
|
33
|
+
email:
|
34
|
+
executables: []
|
35
|
+
|
36
|
+
extensions: []
|
37
|
+
|
38
|
+
extra_rdoc_files: []
|
39
|
+
|
51
40
|
files:
|
52
41
|
- init.rb
|
53
42
|
- lib/m_abstract_request.rb
|
54
|
-
- lib/m_active_record_associatioins.rb
|
55
43
|
- lib/m_active_record_base.rb
|
56
44
|
- lib/m_active_record_errors.rb
|
57
45
|
- lib/m_active_record_validations.rb
|
@@ -60,17 +48,34 @@ files:
|
|
60
48
|
- lib/m_migration_model.rb
|
61
49
|
- lib/rails_extensions.rb
|
62
50
|
- lib/tasks/rubyforge_config.yml
|
63
|
-
|
64
|
-
|
51
|
+
has_rdoc: false
|
52
|
+
homepage:
|
53
|
+
post_install_message:
|
65
54
|
rdoc_options: []
|
66
55
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
- lib
|
59
|
+
- lib
|
60
|
+
- lib/tasks
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: "0"
|
66
|
+
version:
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: "0"
|
72
|
+
version:
|
73
73
|
requirements: []
|
74
74
|
|
75
|
-
|
75
|
+
rubyforge_project: magrathea
|
76
|
+
rubygems_version: 1.0.1
|
77
|
+
signing_key:
|
78
|
+
specification_version: 2
|
79
|
+
summary: rails_extensions
|
80
|
+
test_files: []
|
76
81
|
|
@@ -1,33 +0,0 @@
|
|
1
|
-
module ActiveRecord
|
2
|
-
module Associations
|
3
|
-
module ClassMethods
|
4
|
-
# fixes a bug with ActiveRecord, see http://dev.rubyonrails.org/ticket/7570
|
5
|
-
def has_and_belongs_to_many(association_id, options = {}, &extension)
|
6
|
-
reflection = create_has_and_belongs_to_many_reflection(association_id, options, &extension)
|
7
|
-
|
8
|
-
add_multiple_associated_save_callbacks(reflection.name)
|
9
|
-
collection_accessor_methods(reflection, HasAndBelongsToManyAssociation)
|
10
|
-
|
11
|
-
# Don't use a before_destroy callback since users' before_destroy
|
12
|
-
# callbacks will be executed after the association is wiped out.
|
13
|
-
old_method = "destroy_without_habtm_shim_for_#{reflection.name}"
|
14
|
-
##class_eval <<-end_eval
|
15
|
-
class_eval <<-end_eval unless method_defined?(old_method)
|
16
|
-
alias_method :#{old_method}, :destroy_without_callbacks
|
17
|
-
def destroy_without_callbacks
|
18
|
-
#{reflection.name}.clear
|
19
|
-
#{old_method}
|
20
|
-
end
|
21
|
-
end_eval
|
22
|
-
|
23
|
-
add_association_callbacks(reflection.name, options)
|
24
|
-
|
25
|
-
# deprecated api
|
26
|
-
deprecated_collection_count_method(reflection.name)
|
27
|
-
deprecated_add_association_relation(reflection.name)
|
28
|
-
deprecated_remove_association_relation(reflection.name)
|
29
|
-
deprecated_has_collection_method(reflection.name)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|