!RBIX 9595534255132031488 x M 1 n n x 10 __script__ i 136 99 7 0 65 49 1 2 13 99 12 7 2 12 7 3 12 65 12 49 4 4 15 49 2 0 15 5 7 5 64 47 49 6 1 15 5 7 7 64 47 49 6 1 15 5 7 8 64 47 49 6 1 15 5 7 9 64 47 49 6 1 15 5 7 10 64 47 49 6 1 15 5 7 11 64 47 49 6 1 15 5 7 12 64 47 49 6 1 15 5 7 13 64 47 49 6 1 15 5 7 14 64 47 49 6 1 15 5 7 15 64 47 49 6 1 15 5 7 16 64 47 49 6 1 15 5 7 17 64 47 49 6 1 15 2 11 I 6 I 0 I 0 I 0 n p 18 x 10 RailsAdmin x 11 open_module x 15 __module_init__ M 1 n n x 10 RailsAdmin i 28 5 66 99 7 0 65 49 1 2 13 99 12 7 2 12 7 3 12 65 12 49 4 4 15 49 2 0 11 I 6 I 0 I 0 I 0 n p 5 x 6 Config x 11 open_module x 15 __module_init__ M 1 n n x 6 Config i 28 5 66 99 7 0 65 49 1 2 13 99 12 7 2 12 7 3 12 65 12 49 4 4 15 49 2 0 11 I 6 I 0 I 0 I 0 n p 5 x 7 Actions x 11 open_module x 15 __module_init__ M 1 n n x 7 Actions i 30 5 66 5 99 43 0 12 49 1 1 13 99 12 7 2 12 7 3 12 65 12 49 4 4 15 54 50 2 0 11 I 6 I 0 I 0 I 0 n p 5 x 4 Type x 22 object_singleton_class x 18 __metaclass_init__ M 1 n n x 18 __metaclass_init__ i 132 5 66 99 7 0 7 1 65 67 49 2 0 49 3 4 15 99 7 4 7 5 65 67 49 2 0 49 3 4 15 99 7 6 7 7 65 67 49 2 0 49 3 4 15 99 7 8 7 9 65 67 49 2 0 49 3 4 15 99 7 10 7 11 65 67 49 2 0 49 3 4 15 99 7 12 7 13 65 67 49 2 0 49 3 4 15 99 7 14 7 15 65 67 49 2 0 49 3 4 15 99 7 16 7 17 65 67 49 2 0 49 3 4 15 5 48 18 15 99 7 19 7 20 65 67 49 2 0 49 3 4 11 I 5 I 0 I 0 I 0 n p 21 x 3 all M 1 n n x 3 all i 265 23 0 10 8 1 19 0 15 23 1 10 22 44 43 0 78 49 1 1 19 1 15 20 0 45 0 2 49 3 1 9 43 20 0 19 1 15 7 4 19 0 8 44 1 15 20 0 13 10 55 15 7 4 19 0 15 5 47 49 5 0 15 20 0 13 7 4 12 49 6 1 9 82 15 65 7 7 49 8 1 8 220 13 7 9 12 49 6 1 9 116 15 65 7 7 49 8 1 7 10 13 70 10 111 44 43 11 12 49 12 1 50 13 0 8 220 13 7 14 12 49 6 1 9 150 15 65 7 7 49 8 1 7 15 13 70 10 145 44 43 11 12 49 12 1 50 13 0 8 220 13 7 16 12 49 6 1 9 184 15 65 7 7 49 8 1 7 17 13 70 10 179 44 43 11 12 49 12 1 50 13 0 8 220 13 7 18 12 49 6 1 9 218 15 65 7 7 49 8 1 7 19 13 70 10 213 44 43 11 12 49 12 1 50 13 0 8 220 15 1 19 2 15 20 2 56 20 50 21 0 19 2 15 20 1 7 22 49 23 1 9 262 20 2 7 24 13 70 10 257 44 43 11 12 49 12 1 50 13 0 8 264 20 2 11 I 6 I 3 I 0 I 2 n p 25 x 4 Hash x 16 new_from_literal n x 5 is_a? x 3 all x 13 init_actions! x 3 === x 9 @@actions x 18 class_variable_get x 4 root x 5 root? x 4 Proc x 14 __from_block__ x 6 select x 10 collection x 11 collection? x 8 bulkable x 9 bulkable? x 6 member x 7 member? M 1 p 2 x 9 for_block t n x 3 all i 13 57 19 0 15 20 0 21 1 1 49 0 1 11 I 4 I 1 I 1 I 1 n p 1 x 4 with p 3 I 0 I 19 I d x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 1 x 6 action x 3 map x 10 controller x 2 [] x 8 visible? p 49 I -1 I 6 I 16 I 7 I 20 I 8 I 25 I 9 I 2b I 7 I 2c I 0 I 2d I b I 38 I c I 3e I d I 40 I e I 4a I f I 52 I 10 I 5c I 11 I 74 I 12 I 7e I 13 I 96 I 14 I a0 I 15 I b8 I 16 I c2 I 17 I db I d I dc I d I df I 19 I e9 I 1a I 108 I 0 I 109 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 3 x 5 scope x 8 bindings x 7 actions x 17 method_visibility x 15 add_defn_method x 4 find M 1 n n x 4 find i 73 23 1 10 14 44 43 0 78 49 1 1 19 1 15 5 47 49 2 0 15 65 7 3 49 4 1 56 5 50 6 0 7 7 20 1 49 8 2 19 2 15 20 1 7 9 49 10 1 9 70 20 2 7 11 49 8 1 13 9 63 15 20 2 13 10 68 15 1 8 72 20 2 11 I 6 I 3 I 1 I 2 n p 12 x 4 Hash x 16 new_from_literal x 13 init_actions! x 9 @@actions x 18 class_variable_get M 1 p 2 x 9 for_block t n x 4 find i 15 57 19 0 15 20 0 49 0 0 21 1 0 83 1 11 I 4 I 1 I 1 I 1 n p 2 x 10 custom_key x 2 == p 3 I 0 I 1f I f x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 1 x 1 a x 4 find x 4 with x 3 try x 10 controller x 2 [] x 8 visible? p 11 I -1 I 1d I e I 1e I 14 I 1f I 29 I 20 I 48 I 0 I 49 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 3 x 10 custom_key x 8 bindings x 6 action x 10 collection M 1 n n x 10 collection i 38 23 1 10 9 7 0 19 1 15 95 19 2 15 5 20 0 20 1 7 1 20 2 13 70 10 33 44 43 2 12 49 3 1 47 50 4 3 11 I 9 I 3 I 1 I 2 n p 5 x 4 base x 10 collection x 4 Proc x 14 __from_block__ x 10 add_action p 5 I -1 I 23 I d I 24 I 26 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 3 x 3 key x 12 parent_class x 5 block x 6 member M 1 n n x 6 member i 38 23 1 10 9 7 0 19 1 15 95 19 2 15 5 20 0 20 1 7 1 20 2 13 70 10 33 44 43 2 12 49 3 1 47 50 4 3 11 I 9 I 3 I 1 I 2 n p 5 x 4 base x 6 member x 4 Proc x 14 __from_block__ x 10 add_action p 5 I -1 I 27 I d I 28 I 26 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 3 x 3 key x 12 parent_class x 5 block x 4 root M 1 n n x 4 root i 38 23 1 10 9 7 0 19 1 15 95 19 2 15 5 20 0 20 1 7 1 20 2 13 70 10 33 44 43 2 12 49 3 1 47 50 4 3 11 I 9 I 3 I 1 I 2 n p 5 x 4 base x 4 root x 4 Proc x 14 __from_block__ x 10 add_action p 5 I -1 I 2b I d I 2c I 26 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 3 x 3 key x 12 parent_class x 5 block x 10 add_action M 1 n n x 10 add_action i 187 95 19 3 15 7 0 20 1 49 1 0 49 2 0 47 101 1 63 2 49 3 0 13 71 4 47 9 40 47 49 5 0 13 47 49 6 0 15 8 43 49 4 0 19 4 15 20 4 7 7 20 2 47 101 1 7 8 20 0 47 101 1 7 9 63 5 49 10 1 15 20 3 9 94 20 4 20 3 13 70 10 89 44 43 11 12 49 12 1 50 10 0 8 95 1 15 20 4 49 13 0 65 7 14 49 15 1 13 10 113 15 35 0 7 13 13 70 10 126 44 43 11 12 49 12 1 50 16 0 49 17 1 9 155 5 7 18 20 4 49 13 0 47 101 1 7 19 63 3 47 49 20 1 8 186 65 7 14 49 21 1 9 173 65 7 14 49 15 1 13 10 181 15 65 7 14 35 0 49 22 2 20 4 49 23 1 11 I b I 5 I 3 I 3 n p 24 s 29 RailsAdmin::Config::Actions:: x 4 to_s x 8 camelize x 11 constantize x 3 new x 8 allocate x 10 initialize s 13 s 41 true def key : s 27 end x 13 instance_eval x 4 Proc x 14 __from_block__ x 10 custom_key x 9 @@actions x 18 class_variable_get x 3 map x 3 in? s 7 Action s 44 already exist. Please change its custom key x 5 raise x 23 class_variable_defined? x 18 class_variable_set x 2 << p 25 I -1 I 2f I 4 I 30 I 2e I 31 I 32 I 32 I 39 I 34 I 42 I 31 I 46 I 37 I 5f I 0 I 60 I 38 I 86 I 3b I 9b I 39 I ba I 0 I bb x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 5 x 3 key x 12 parent_class x 6 parent x 5 block x 1 a x 5 reset M 1 n n x 5 reset i 8 65 7 0 1 49 1 2 11 I 3 I 0 I 0 I 0 n p 2 x 9 @@actions x 18 class_variable_set p 5 I -1 I 3f I 0 I 40 I 8 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 x 8 register M 1 n n x 8 register i 76 23 1 10 8 1 19 1 15 20 1 1 83 0 13 9 25 15 20 0 45 1 2 49 3 1 9 50 20 0 19 1 15 20 1 49 4 0 49 5 0 49 6 0 49 7 0 19 0 8 51 1 15 5 7 8 20 0 47 101 4 7 9 20 1 47 101 4 7 10 63 5 47 49 11 1 11 I 8 I 2 I 1 I 2 n p 12 x 2 == x 5 Class n x 8 kind_of? x 4 to_s x 10 demodulize x 10 underscore x 6 to_sym s 17 def s 32 (&block) action = s 340 .new action.instance_eval &block if block unless action.custom_key.in?((@@actions || []).map(&:custom_key)) (@@actions ||= []) << action else raise "Action #{action.custom_key} already exist. Please change its custom key" end end x 13 instance_eval p 23 I -1 I 43 I 8 I 44 I 1b I 45 I 20 I 46 I 32 I 44 I 33 I 0 I 34 I 53 I 35 I 49 I 37 I 4a I 3e I 4b I 47 I 53 I 4c x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 2 x 4 name x 5 klass x 7 private x 13 init_actions! M 1 n n x 13 init_actions! i 291 65 7 0 49 1 1 9 18 65 7 0 49 2 1 13 10 290 15 65 7 0 45 3 4 13 71 5 47 9 42 47 49 6 0 13 47 49 7 0 15 8 45 49 5 0 45 8 9 13 71 5 47 9 66 47 49 6 0 13 47 49 7 0 15 8 69 49 5 0 45 10 11 13 71 5 47 9 90 47 49 6 0 13 47 49 7 0 15 8 93 49 5 0 45 12 13 13 71 5 47 9 114 47 49 6 0 13 47 49 7 0 15 8 117 49 5 0 45 14 15 13 71 5 47 9 138 47 49 6 0 13 47 49 7 0 15 8 141 49 5 0 45 16 17 13 71 5 47 9 162 47 49 6 0 13 47 49 7 0 15 8 165 49 5 0 45 18 19 13 71 5 47 9 186 47 49 6 0 13 47 49 7 0 15 8 189 49 5 0 45 20 21 13 71 5 47 9 210 47 49 6 0 13 47 49 7 0 15 8 213 49 5 0 45 22 23 13 71 5 47 9 234 47 49 6 0 13 47 49 7 0 15 8 237 49 5 0 45 24 25 13 71 5 47 9 258 47 49 6 0 13 47 49 7 0 15 8 261 49 5 0 45 26 27 13 71 5 47 9 282 47 49 6 0 13 47 49 7 0 15 8 285 49 5 0 35 11 49 28 2 11 I e I 0 I 0 I 0 n p 29 x 9 @@actions x 23 class_variable_defined? x 18 class_variable_get x 9 Dashboard n x 3 new x 8 allocate x 10 initialize x 5 Index n x 4 Show n x 3 New n x 4 Edit n x 6 Export n x 6 Delete n x 10 BulkDelete n x 11 HistoryShow n x 12 HistoryIndex n x 9 ShowInApp n x 18 class_variable_set p 31 I -1 I 58 I 0 I 65 I 12 I 59 I 15 I 5a I 2d I 5b I 45 I 5c I 5d I 5d I 75 I 5e I 8d I 5f I a5 I 60 I bd I 61 I d5 I 62 I ed I 63 I 105 I 64 I 11f I 59 I 123 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 p 21 I 2 I 6 I 10 I 1d I 1e I 23 I 2c I 27 I 3a I 2b I 48 I 2f I 56 I 3f I 64 I 43 I 72 I 56 I 76 I 58 I 84 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 x 13 attach_method p 3 I 2 I 5 I 1e x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 x 13 attach_method p 3 I 2 I 3 I 1c x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 x 13 attach_method p 3 I 2 I 2 I 1c x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0 x 13 attach_method s 31 rails_admin/config/actions/base x 7 require s 36 rails_admin/config/actions/dashboard s 32 rails_admin/config/actions/index s 31 rails_admin/config/actions/show s 38 rails_admin/config/actions/show_in_app s 39 rails_admin/config/actions/history_show s 40 rails_admin/config/actions/history_index s 30 rails_admin/config/actions/new s 31 rails_admin/config/actions/edit s 33 rails_admin/config/actions/export s 33 rails_admin/config/actions/delete s 38 rails_admin/config/actions/bulk_delete p 27 I 0 I 1 I 1a I 6d I 23 I 6e I 2c I 6f I 35 I 70 I 3e I 71 I 47 I 72 I 50 I 73 I 59 I 74 I 62 I 75 I 6b I 76 I 74 I 77 I 7d I 78 I 88 x 66 /Users/erik/Projects/rails_admin/lib/rails_admin/config/actions.rb p 0