Skip to content

Commit

Permalink
Merge pull request #18 from performant-software/feature/udf17_startup…
Browse files Browse the repository at this point in the history
…_error

UDF #17 - Startup error
  • Loading branch information
dleadbetter authored Sep 27, 2022
2 parents dac5654 + b875791 commit 4fff0bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ class AddUserDefinedFieldsToMyModel < ActiveRecord::Migration[7.0]
end
```

### Routes
The user defined field routes can be added by mounting the engine in `routes.rb`:

```ruby
mount UserDefinedFields::Engine, at: '/user_defined_fields'
```

### Controllers
Each individual field can be configured to be searchable or non-searchable. A searchable field will be included in the query when a user provides the "search" parameter on the API request.

Expand Down
1 change: 1 addition & 0 deletions lib/user_defined_fields.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "user_defined_fields/configuration"
require "user_defined_fields/version"
require "user_defined_fields/engine"

Expand Down

0 comments on commit 4fff0bd

Please sign in to comment.