Skip to content

Commit

Permalink
fixed ready_to_publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Aug 19, 2014
1 parent 831a2a8 commit 493fe96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/sf/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def timestamp
end

def ready_to_publish?
required_attrs = %w(title__c abstract__c timestamp__c start_time__c date__c end_time__c)
required_attrs = %w(title__c timestamp__c start_time__c date__c end_time__c)
ready = true
required_attrs.each do |attr|
if self.send(attr).blank?
Expand All @@ -73,7 +73,7 @@ def self.by_event_code(code)

def self.where(args = {})
where = args.map {|k,v| "#{k} = \'#{v}\'"}.join(" and ")
sobjects = Sf.client.query("select Id, Name, title__c, primary_track_id__r.Name, session_type__r.Name, start_time__c, room_id__r.Name, cms_session_id__c from EventSession__c where #{where}")
sobjects = Sf.client.query("select Id, Name, title__c, primary_track_id__r.Name, session_type__r.Name, start_time__c, room_id__r.Name, cms_session_id__c, timestamp__c, date__c, end_time__c from EventSession__c where #{where}")
build_collection sobjects unless sobjects.blank?
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/sf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sf
VERSION = "0.1.5"
VERSION = "0.1.6"
end

0 comments on commit 493fe96

Please sign in to comment.