-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: Send FactoryBot examples to JbuilderSchema for proper attributes and properties examples in schemas * Fix for unwrapped parameters in examples * Fix Standard * Fix id type in paths * Upgrade Ruby to 3.2.2 * Hacked Jbuilder to correct action_text values * Rename Jbuilder Hacks module to ValuesTransformer * Updated jbuilder-schema * Fix: namespaced model names transform to undercored
- Loading branch information
Showing
6 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ RUBY VERSION | |
ruby 3.2.2p53 | ||
|
||
BUNDLED WITH | ||
2.3.8 | ||
2.4.12 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require "jbuilder" | ||
|
||
module ValuesTransformer | ||
def _set_value(key, value) | ||
value = value.body if value.is_a?(ActionText::RichText) | ||
|
||
super(key, value) | ||
end | ||
end | ||
|
||
::Jbuilder.prepend ValuesTransformer |