public
Description: The Ruby Implementation of SWX RPC
Homepage: http://swxruby.org
Clone URL: git://github.com/meekish/swxruby.git
Make OPTIONS[:essentials] into a constant so we dont' get nil errors if 
OPTIONS isn't defined
Jed Hurt (author)
Tue Mar 11 21:47:10 -0700 2008
commit  688227fd684cfa3af13d9342fb2066a99af862be
tree    ba08b5e61f1510425ac3dc760345d941ce2f3122
parent  0bb90bee89907433b0134ac9f6034554f41bdd2a
...
54
55
56
 
57
58
...
54
55
56
57
58
59
0
@@ -54,4 +54,5 @@ unless File.exist?("#{RAILS_ROOT}/vendor/plugins/swxruby/init.rb")
0
   cp(File.join(SWX_RUBY_ROOT, 'init.rb'), "#{RAILS_ROOT}/vendor/plugins/swxruby/init.rb")
0
 end
0
 
0
+ESSENTIALS = OPTIONS[:essentials]
0
 require File.join(SWX_RUBY_ROOT, 'install.rb')
0
\ No newline at end of file
...
31
32
33
34
 
35
36
37
...
31
32
33
 
34
35
36
37
0
@@ -31,7 +31,7 @@ begin
0
     mkdir("#{RAILS_ROOT}/app/services")
0
   end
0
 
0
- unless OPTIONS[:essentials]
0
+ unless ESSENTIALS
0
     # Copy TestDataTypes class to app/services
0
     unless File.exist?("#{RAILS_ROOT}/app/services/test_data_types.rb")
0
       puts '*** Copying TestDataTypes service class to app/services ***'

Comments

    No one has commented yet.