Skip to content

Commit

Permalink
Fix invalid error class (#6)
Browse files Browse the repository at this point in the history
* Fixed invalid error class in generator.  Updated typos in README

* Updated the version

---------

Co-authored-by: Tracey A. Beauchat, Ph.D <107330374+TABeauchat@users.noreply.github.com>
  • Loading branch information
asedge and TABeauchat authored Feb 15, 2023
1 parent d9ab453 commit 41f2019
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 41f2019

Please sign in to comment.