activeldap/activeldap@6cc198c [master] Use private

1 view
Skip to first unread message

Kouhei Sutou

unread,
Apr 28, 2018, 2:42:22 AM4/28/18
to activeld...@googlegroups.com
Author
Kouhei Sutou <k...@clear-code.com>
Date
2018-04-28 15:42:00 +0900 (Sat, 28 Apr 2018)
New Revision
6cc198c8135ab865181e0f64805e1181615557c1
Message
Use private
Modified files
  Modified: lib/active_ldap/attribute_methods.rb (+1 -2)
===================================================================
...
13
14
15
16
17
 
18
19
20
...
13
14
15
 
 
16
17
18
19
@@ -13,8 +13,7 @@ module ActiveLdap
       end.flatten
     end
 
-    protected
-
+    private
     # overiding ActiveModel::AttributeMethods
     def attribute_method?(method_name)
       have_attribute?(method_name, ['objectClass'])
  Modified: lib/active_ldap/attribute_methods/before_type_cast.rb (+1 -1)
===================================================================
...
7
8
9
10
 
11
12
13
...
7
8
9
 
10
11
12
13
@@ -7,7 +7,7 @@ module ActiveLdap
         attribute_method_suffix '_before_type_cast'
       end
 
-    protected
+      private
       def attribute_before_type_cast(attr)
         get_attribute_before_type_cast(attr)[1]
       end
  Modified: lib/active_ldap/attribute_methods/dirty.rb (+1 -1)
===================================================================
...
28
29
30
31
 
32
33
34
...
28
29
30
 
31
32
33
34
@@ -28,7 +28,7 @@ module ActiveLdap
         end
       end
 
-    protected
+      private
       def set_attribute(name, value)
         if name and name != "objectClass"
           attribute_will_change!(name) unless value == get_attribute(name)
  Modified: lib/active_ldap/attribute_methods/query.rb (+1 -1)
===================================================================
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
@@ -8,7 +8,7 @@ module ActiveLdap
         attribute_method_suffix '?'
       end
 
-    protected
+      private
       def get_attribute_as_query(name, force_array=false)
         name, value = get_attribute_before_type_cast(name, force_array)
         if force_array
  Modified: lib/active_ldap/attribute_methods/read.rb (+1 -1)
===================================================================
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
@@ -3,7 +3,7 @@ module ActiveLdap
     module Read
       extend ActiveSupport::Concern
 
-    protected
+      private
       def attribute(attr, *args)
         return get_attribute(attr, args.first)
       end
  Modified: lib/active_ldap/attribute_methods/write.rb (+1 -1)
===================================================================
...
7
8
9
10
 
11
12
13
...
7
8
9
 
10
11
12
13
@@ -7,7 +7,7 @@ module ActiveLdap
         attribute_method_suffix '='
       end
 
-    protected
+      private
       def attribute=(attr, *args)
         return set_attribute(attr, args.first)
       end
  Modified: lib/active_ldap/base.rb (+1 -1)
===================================================================
...
551
552
553
554
 
555
556
557
...
551
552
553
 
554
555
556
557
@@ -551,7 +551,7 @@ module ActiveLdap
         defaults.first || name || to_s
       end
 
-      protected
+      private
       def find_real_class(object_classes)
         (sub_classes || []).each do |sub_class|
           real_class = sub_class.find_real_class(object_classes)
  Modified: lib/active_ldap/railties/controller_runtime.rb (+1 -2)
===================================================================
...
6
7
8
9
10
 
11
12
13
...
6
7
8
 
 
9
10
11
12
@@ -6,8 +6,7 @@ module ActiveLdap
     module ControllerRuntime #:nodoc:
       extend ActiveSupport::Concern
 
-    protected
-
+      private
       attr_internal :ldap_runtime
 
       def process_action(action, *args)
Reply all
Reply to author
Forward
0 new messages