Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature: Ability to name Obj C classes differently than Rails models #4

@tamoyal

Description

@tamoyal

One thing I've noticed is that it's very hard to use Objective Resource if you don't name your Obj C model the same as your Rails model (well Rails controller actually). The issues are mainly around the inability to customize generated routes and the parameter hash key.

After digging into the source code I see that Objective Resource is checking for the class name all over the place. What if you just built an Objective Resource specific class name function that could be overridden in our models? Seems really easy and I'll probably do it if I decide to stick with Objective Resource but right now I'm still in an evaluation period.

Regardless thanks for the magic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions