Skip to content

Conversation

@Austio
Copy link

@Austio Austio commented Sep 12, 2025

Republishing

fgrehm and others added 30 commits March 23, 2016 00:10
Since that belongs_to is required by default at Rails 5 we need to add the `inverse_of`option to has_many on the owner object or you will receive a validation error when you create try create it.
Fix for Active Record callbacks to enable Rails 5 compatibility
need coffee-script and can loose cloudinary version
CORS support should be opt-in
Replacing symbolize_keys! with symbolize_keys
Honor resource type on destroy and tag removal
This commit provides a default options for as_json method in the FileMixin module.
This is to prevent the error that occurs when the as_json method is called without any options.
The default options are set to an empty hash.

This error was discovered when upgrading the wiki to Ruby 3.3.6

```
level":"fatal","tags":["d3ddc515-ac56-4706-9b85-d611a3c88f28"],"name":"Rails","exception":{"name":"ActionView::Template::Error","message":"wrong number of arguments (given 0, expected 1)","stack_trace":["/workspace/vendor/cache/attachinary-a72d9b6c151f/lib/attachinary/orm/file_mixin.rb:12:in `as_json'"
```
…pgrade

Update FileMixin as_json for Ruby 3.3.6 upgrade of Wiki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.