Problem with active_scaffold defaults defined in application.rb
---------------------------------------------------------------
Key: JRUBY-2248
URL: http://jira.codehaus.org/browse/JRUBY-2248
Project: JRuby
Issue Type: Bug
Environment: jruby trunk, rails 2.0.2 (also happens with 1.x), windows
XP
Reporter: Ricardo Trindade
Assignee: Thomas E Enebo
I'm, having an issue with ActiveScaffold. The following code, in
application.rb, sets some defaults :
> > # Globally remove some common ActiveScaffold columns
> > ActiveScaffold.set_defaults do |config|
> > config.ignore_columns.add [:created_at, :updated_at, :lock_version]
> > config.list.per_page = 12
> > # live search
> > config.actions.swap :search, :live_search
> > # open in new page instead of inline
> > config.update.link.page = true
> > config.create.link.page = true
> > config.show.link.page = true
> > end
This exact code runs well on MRI, but if run with jruby, I get this
error in every page :
undefined method `per_page=' for #<Hash:0x4cd046>
I haven't investigated further, since we changed the defaults to a
base admin controller, and it works fine that way. But still, it's a
point where jruby is breaking, so here it is.
I have tried this with past versions of jruby, and never saw it work correctly
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email