Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Unify naming & partially unify implementation of dm-timestamps & Paranoid*#32

Closed
emmanuel wants to merge 13 commits into
datamapper:masterfrom
emmanuel:feature/unify_stamps
Closed

Unify naming & partially unify implementation of dm-timestamps & Paranoid*#32
emmanuel wants to merge 13 commits into
datamapper:masterfrom
emmanuel:feature/unify_stamps

Conversation

@emmanuel
Copy link
Copy Markdown
Member

This is the third of 3 pull requests from decomposing the many changes in #24. It is a superset of the changes in #30 and #31.

These changes subsume dm-timestamps into dm-types and unify the naming of Paranoid* to align with the naming. This results in:

  • :created_on -> Created::Date
  • :created_at -> Created::DateTime
  • :updated_on -> Updated::Date
  • :updated_at -> Updated::DateTime
  • ParanoidBoolean -> Destroyed::Boolean
  • ParanoidDateTime -> Destroyed::DateTime

I haven't ported the Model#timestamps macro from dm-timestamps (labeled as implicit property declaration in the dm-timestamps specs). My thinking is that if these changes (#30, #31 and this) are integrated, the Model#timestamps macro may remain in an updated dm-timestamps gem which merely provides a dependency on dm-types and a method or two for backwards compatibility.

@solnic
Copy link
Copy Markdown
Contributor

solnic commented Sep 14, 2011

@emmanuel I think we agreed that it's not gonna be merged in. so if you don't mind, I will close it, ok?

@emmanuel
Copy link
Copy Markdown
Member Author

We did agree that this was not the right direction to go: adding Resource lifecycle responsibilities to Property introduces more coupling. I think something like (my interceptors spike)[https://github.com/emmanuel/dm-core/compare/datamapper:master...emmanuel:feature/interceptors] will be a better direction instead.

Go ahead and close this.

On Sep 14, 2011, at 2:13 AM, Piotr Solnica wrote:

@emmanuel I think we agreed that it's not gonna be merged in. so if you don't mind, I will close it, ok?

Reply to this email directly or view it on GitHub:
#32 (comment)

@solnic solnic closed this Sep 14, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants