Comments (4)
Can you show an example where it doesn't work?
from dm-rails.
In this model, https://github.com/jaischeema/doorkeeper/blob/datamapper/app/models/application.rb, in place of before:valid?
, I was using before :create
.
I also removed the generate methods from within the block and tried to use a simple put "in the hook
, but it doesn't do anything.
from dm-rails.
before :create/:save hook won't be called if a resource is not valid, this is why in this case you need to do before :valid? and it's ok
from dm-rails.
oh, I didnt knew that was the expected behaviour and was going by ActiveRecord sort of workflow. Thank you for your time.
from dm-rails.
Related Issues (20)
- Catching up to Rails 3.1.0 HOT 5
- dm-rails should map empty Strings to nil, for Integer properties that allow_nil HOT 4
- Rails 3.0 compatibility HOT 1
- SessionStore does not write session if internals of session['flash'] are modified HOT 4
- Rails 3.2 compatibility HOT 4
- Bump Rails version to 3.2 HOT 1
- Railties 3.2 compatibility HOT 19
- db:automigrate fails dm 1.3.0 - beta and mysql HOT 7
- gem dependency clash with rails 3.2.1 HOT 3
- active record config errors on app generation HOT 1
- migrate task: Use Rails config.paths for location of migration files HOT 1
- Datamapper session argument error in rails 3.2 & 3.1 HOT 1
- 1.3.0 HOT 1
- Will dm-rails be upgraded to fix the recent security vulnerability? HOT 1
- Is dm-rails affected by the latest Rails security vulnerability? HOT 1
- 1.2.1: need to check for nil variables in configuration.rb HOT 1
- Support for Rails 4? HOT 2
- Ignore
- Models in Rails Engines Erroring (1.2.0, I think)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dm-rails.