Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid error class #6

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ end

Altenative you can try the generator. (requires setting up the connection)

rails generate active_force_model Medication__c
rails generate active_force:model Medication__c

The model generator also supports an optional namespace which will add a namespace to the generated model

rails generate active_force_model Medication__c SomeNamespace
rails generate active_force:model Medication__c SomeNamespace

### Associations

Expand Down
2 changes: 1 addition & 1 deletion lib/active_force/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ActiveForce
VERSION = "0.9.0"
VERSION = "0.9.1"
end
2 changes: 1 addition & 1 deletion lib/generators/active_force/model/model_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def sfdc_columns

def table_exists?
!! sfdc_columns
rescue Faraday::Error::ResourceNotFound
rescue Faraday::ResourceNotFound
puts "The specified table name is not found. Be sure to append __c if it's custom"
end

Expand Down