Last active
August 29, 2015 14:01
-
-
Save laspluviosillas/b65ce846804bb0209e00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Project | |
mount_sf_api :sf_setup do |s| | |
s.api "https://cs18.salesforce.com/services/apexrest/ProjectApplication" | |
s.fields [ | |
:agree_memo, :agree_to_transport, :challenges_description, | |
:created_at, :culture_description, :description, | |
:dining_location, :guidelines_description, :housing_description, | |
:housing_type, :internet_distance, :location_city, :location_country, | |
:location_description, :location_private, :location_state_or_province, | |
:location_street_address, :location_type, :max_students, | |
:min_stay_duration, :min_students, :per_week_cost, :per_week_cost_final, :related_fields_of_study, | |
:related_student_passions, :required_languages, :safety_level, :typical_attire | |
:student_educational_requirement, :team_mode, :transportation_available, | |
], custom: true | |
s.association :organization do |o| | |
o.fields [:name, :website, :type] | |
end | |
s.association :field_host do |f| | |
o.fields [:salutation] | |
o.field :first_name, as: "FirstName" | |
o.field :last_name, as: "LastName" | |
o.field :preferred_phone, as: "Phone" | |
end | |
end | |
end | |
# Available methods: | |
project.sf_setup.create | |
project.sf_setup.update | |
project.sf_setup.delete | |
project.sf_setup.save # ?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment