-
Representers seem to fulfill the same purpose as [ActiveModel::Serializers](https://github.com/josevalim/active_model_serializers) do.
Could you point out the differences of these two?
ActiveModel::…
-
Rails 6.1 has changed how errors are structured internally, which will affect how `activemodel-caution` should function.
See the new [API docs](https://api.rubyonrails.org/classes/ActiveModel/Error…
-
I've implemented SaveAs method to create a copy of the file for the following operations
`Application.ActiveModel.SaveAs(tempFileLocation, options: SaveAsOptions.Silent | SaveAsOptions.Copy);`
I…
-
After update to `v0.1.0` from `v0.0.9` tests started to fail with
```ruby
expect(
get_users(page: '-2')
).to eq(errors: { page: ["must be a positive number"] })
expected: {:errors=>{:page=>["…
-
Instead of using its own rules, rails_param could use a ActiveModel class to validate the params.
This would be a major rewrite of the library.
The benefit is that the developer will be able to use al…
-
We add `#errors_any?` and `#errors_empty?` to ApplicationRecord so that we can call these methods on returning interaction returned records. Should we recommend this for all makwa uses?
jhund updated
2 years ago
-
``` ruby
it "fails to persist" do
expect(errors).to include(name: "can't be blank")
end
```
```
error: [:name] does not include { :name => "can't be blank" }
```
The error might not be quite that,…
-
When you run the destroy generator for an `ActiveModel:FormObject`, it always deletes the RSpec `shared_examples`, regardless of whether other FormObjects exist.
-
A module that behaves like `Literal::Attributes`, but proxies all the setting and getting to `super`. This could be used on ActiveRecord models, for example.
-
Following a helpful discussion on Discord I would like to code an upgrade to sea-orm-cli generate entity, if the project is willing to merge a pull request.
My idea is that when an entity is regene…