Skip to content

Commit 72385ea

Browse files
author
Hartmut Bischoff
committed
Prepare for Gem-release with the ability to integrate an external database
1 parent 274f8ef commit 72385ea

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
972.0
1+
972.1

lib/models/ib/account.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ def logger #nodoc#
3232
Connection.logger
3333
end
3434

35-
# Setze Account connect/disconnect und undate!
36-
def connect!
37-
update_attribute :connected , true
38-
end
39-
def disconnect!
40-
update_attribute :connected , false
41-
end
42-
4335
def print_type #nodoc#
4436
(test_environment? ? "demo_" : "") + ( user? ? "user" : "advisor" )
4537
end

lib/models/ib/contract.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module IB
77

88
if defined?(Contract)
99
puts "Contract already a #{defined?(Contract)}"
10-
puts Contract.ancestors
10+
# puts Contract.ancestors
1111
# IB.send(:remove_const, 'Contract')
1212
end
1313
class Contract < IB::Model

lib/models/ib/underlying.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module IB
2+
if defined?(Underlying)
3+
puts "Underlying already a #{defined?(Underlying)}"
4+
else
25

36
# Calculated characteristics of underlying Contract (volatile)
47
class Underlying < IB::Model
@@ -30,5 +33,5 @@ def == other
3033

3134
end # class Underlying
3235
UnderComp = Underlying
33-
36+
end
3437
end # module IB

0 commit comments

Comments
 (0)