Skip to content

"Unrails" the gem so that it works outside of rails as well #18

@HoneyryderChuck

Description

@HoneyryderChuck

Hi

I have an issue here. I want to use AR in Sinatra (or Merb, for that matter), but the initialization of the gem is done in a Railstie block. Is it for some special reason like that? I would say that the only dependency of this gem is ActiveRecord (or mysql adapter, since enum is a mysql-only property), and therefore, by unrails it, you'd be having the gem used in more application (non-Rails as well).

By the way, my short-term solution was to put whatever was on the Railstie block in an initializer. A bit overkill, for now.

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