Skip to content

Commit

Permalink
Fix bug in speaker.csv export.
Browse files Browse the repository at this point in the history
  • Loading branch information
kcomandich committed May 29, 2014
1 parent e087506 commit e623205
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions app/models/open_conference_ware/user.rb
Expand Up @@ -109,29 +109,35 @@ def proposals
email
end

base_comma_attributes = lambda {
comma :full do
email
id
first_name
last_name
affiliation
biography
photo url: 'Photo'
website
twitter
identica
blog_url
created_at xmlschema: 'Created'
updated_at xmlschema: 'Updated'
created_at 'Created'
updated_at 'Updated'
proposals ids: 'Session ids'
}

comma :full do
email
instance_eval &base_comma_attributes
end

comma :public do
instance_eval &base_comma_attributes
id
first_name
last_name
affiliation
biography
website
twitter
identica
blog_url
created_at 'Created'
updated_at 'Updated'
proposals ids: 'Session ids'
end

#---[ PaperClip avatar images ]-----------------------------------------
Expand Down

0 comments on commit e623205

Please sign in to comment.