Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default name column from name #80

Open
deanchester opened this issue Oct 8, 2012 · 1 comment
Open

Change default name column from name #80

deanchester opened this issue Oct 8, 2012 · 1 comment

Comments

@deanchester
Copy link

Hi,

In my application i have a name column and a event_name column. I would like to use the event_name column for the names in the calendar but the gem picks up on the name column. How can this be overridden?

TIA,
D.

@sufleR
Copy link

sufleR commented Oct 31, 2012

Just set alias to event_name column in sql:

Event.select("id, event_name as name .......other columns......").events_for_date_range(start_d, end_d)

Look also at issue #63 setting event-color and #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants