lib/netsuite_rails/configuration.rb in netsuite_rails-0.2.2 vs lib/netsuite_rails/configuration.rb in netsuite_rails-0.3.1

- old
+ new

@@ -12,28 +12,30 @@ @attributes ||= {} end def netsuite_sync_mode(mode = nil) if mode.nil? - attributes[:sync_mode] ||= :none + attributes[:sync_mode] ||= :async else attributes[:sync_mode] = mode end end def netsuite_push_disabled(flag = nil) if flag.nil? - attributes[:flag] ||= false + attributes[:push_disabled] = false if attributes[:push_disabled].nil? + attributes[:push_disabled] else - attributes[:flag] = flag + attributes[:push_disabled] = flag end end def netsuite_pull_disabled(flag = nil) if flag.nil? - attributes[:flag] ||= false + attributes[:pull_disabled] = false if attributes[:pull_disabled].nil? + attributes[:pull_disabled] else - attributes[:flag] = flag + attributes[:pull_disabled] = flag end end def netsuite_instance_time_zone_offset(zone_offset = nil) if zone_offset.nil?