aashishiiita / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Warning: Object#Type is Depreciated #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Just an FYI. Calendar is working fine for me, but I get a warning from Rails.

What steps will reproduce the problem?
1. Install the plugin (git source), and include the calendar in a form_for:
"<%= u.calendar_date_select :nice_startdate %>"

Server logs show:
vendor/plugins/calendar_date_select/lib/calendar_date_select.rb:150: warning: 
Object#type is 
deprecated; use Object#class

I'm currently on edge rails. Please let me know if you want more information.

Original issue reported on code.google.com by bradybou...@gmail.com on 16 Apr 2008 at 10:56

GoogleCodeExporter commented 9 years ago
Are you targetting a virtual column?  Only thing I could think of is if the 
column you are targetting doesn't show 
up in ARModel#columns_hash

Original comment by timchar...@gmail.com on 30 Nov 2008 at 8:26

GoogleCodeExporter commented 9 years ago
Correct - I had a bad attr_accessor method in the controller that was causing 
the problem. Thanks for your 
reply!

Original comment by bradybou...@gmail.com on 30 Nov 2008 at 8:48