Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-26 Thread Michael Schuerig
On Sunday 26 August 2012, Tim Olsen wrote: > On Sat, Aug 25, 2012 at 10:14 AM, Michael Schuerig < > > michael.li...@schuerig.de> wrote: > > I think our cases are different. I'm not using the Rails streaming > > support at all. Instead, I'm setting the necess

Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-25 Thread Michael Schuerig
On Saturday 25 August 2012, Tim Olsen wrote: > On Sat, Aug 25, 2012 at 2:55 AM, Michael Schuerig > > > wrote: > > > > Is there a problem with chunking and Tomcat? jruby-rack doesn't > > support it directly, but it doesn't prohibit it either. It appear

Re: [Rails-core] Should chunked encoding (by Rails) be optional for HTTP streaming?

2012-08-24 Thread Michael Schuerig
response_body whose #each yields properly formatted chunks and a terminating empty chunk. I've just started to use this to pass through (already chunked) responses from another services. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received

Re: [Rails-core] Extending controllers and models of Rails 3.2+ Engines

2012-07-15 Thread Michael Schuerig
ds renaming methods with alias_method_chain or similar. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, s

Re: [Rails-core] Transitive engine dependencies

2012-07-04 Thread Michael Schuerig
27; > > moduleMyEngine > class Engine < ::Rails::Engine > end > end Now that you've said it, it seems incredibly obvious. Thanks! Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message becau

[Rails-core] Transitive engine dependencies

2012-07-04 Thread Michael Schuerig
d to declare all the transitive engine dependencies. I'd rather not do that. I'm wondering, did I miss some nice declarative way to say that an engine depends on other engines? Or is this a limitation in the current implementation? Michael -- Michael Schuerig mailto:mich...@schu

Re: [Rails-core] Engines in engines: not loaded in dummy test app

2012-06-11 Thread Michael Schuerig
On Monday 11 June 2012, Rodrigo Rosenfeld Rosas wrote: > Em 11-06-2012 15:10, Michael Schuerig escreveu: > > ... > > In order to get those engines loaded at the right time, I need to > > add explicit requires in test/dummy/config/application.rb, just > > below the g

Re: [Rails-core] Engines in engines: not loaded in dummy test app

2012-06-11 Thread Michael Schuerig
On Monday 11 June 2012, Jeremy Walker wrote: > On 11 June 2012 19:10, Michael Schuerig wrote: > > A recent discussion here has brought konacha, an engine for testing > > JavaScript code, to my attention. In the meantime, I have extracted > > common code from several applic

[Rails-core] Engines in engines: not loaded in dummy test app

2012-06-11 Thread Michael Schuerig
it needs to set different additional asset paths, then when in an app environment), but it would be a good start. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

Re: [Rails-core] Re: Please, keep changing!

2012-03-04 Thread Michael Schuerig
assess, and apply the advice in the available books on Ruby and Rails good practices. If an upgrade to a newer Rails version seems daunting, it may well be because it exposes problems with your codebase that are quite independent of Rails itself. Michael -- Michael Schuerig mailto:m

Re: [Rails-core] named finders and possible security issues

2011-04-15 Thread Michael Schuerig
reak code like Klass.order_by_foo.find_by_bar(...) I'd suggest that dynamic finders raise an exception when they are passed nil, but I'm pretty sure that this would break existing code, too. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You re

[Rails-core] Re: asset_path: are reserved names sneaking up on me?

2010-09-07 Thread Michael Schuerig
On Wednesday 08 September 2010, Michael Koziarski wrote: > On Tue, Sep 7, 2010 at 10:53 PM, Michael Schuerig wrote: > > On Tuesday 07 September 2010, Evgeniy Dolzhenko wrote: > >> Just as you can't have Image or Javascript resource. > > You're *meant* to be abl

[Rails-core] Re: asset_path: are reserved names sneaking up on me?

2010-09-07 Thread Michael Schuerig
n the process leading up to it. I'm pretty sure that there are lots of existing apps that have Asset models. Upgrading these apps has become more complicated due to the change. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this messa

[Rails-core] asset_path: are reserved names sneaking up on me?

2010-09-07 Thread Michael Schuerig
, :javascripts_dir, :stylesheets_dir end end end I'm sure the change was well-intentioned, but it surreptitiously grabs a rather common name and reserving it for the framework. In effect, this change precludes having an asset resource. I think this is bad. Michael -- Michael Schuerig mailto

[Rails-core] Responding to a non-registered MIME type?

2010-09-05 Thread Michael Schuerig
plicit response for the format. Did I miss how to do this with the existing responder code? Are there serious reasons why it should not be done anyway? Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subsc

[Rails-core] Re: "Calling a method in Rails::Application is deprecated"

2010-08-26 Thread Michael Schuerig
On Thursday 26 August 2010, Chris Hanks wrote: > You can still use Rails.application. Yes, you're right. Forget what I wrote, I misdiagnosed the problem. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message because

[Rails-core] "Calling a method in Rails::Application is deprecated"

2010-08-25 Thread Michael Schuerig
here is no longer a generic way to access the application's configuration? The engine I mentioned above contains code shared among several applications and I need a way to read and write configuration information without knowing the exact class of the application. Michael -- Michael Schue

[Rails-core] Responders, JSON, and PUT requests

2010-08-06 Thread Michael Schuerig
.parseJSON = function(data) { if (/^\s*$/.test(data)) { return null; } else { parseJSON_orig(data); } } Is there any better way to get things working? Should jquery-ujs take care of this problem? Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig

[Rails-core] Re: Rendering a different format in the implementation of a renderer

2010-07-04 Thread Michael Schuerig
hink it would be useful to have a way to force the rendered format. However, I don't yet understand the architecture well enough to be entirely sure that this is a good idea. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this mess

[Rails-core] Rendering a different format in the implementation of a renderer

2010-07-04 Thread Michael Schuerig
format could be an option to #render. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrai

[Rails-core] Finding out what formats an action can respond to

2010-06-25 Thread Michael Schuerig
me #responds_to? is dangerously close to #respond_to?, #responds_to_format? may be safer, if less pretty. Also, it might be a good idea for #collect_mimes_from_class_level to memoize its result. Is there any reason against this? A better way? Michael -- Michael Schuerig mailto:mich...@schuerig.de

[Rails-core] Re: Modularized Rails info aka /rails/info/properties

2009-06-14 Thread Michael Schuerig
On Wednesday 20 May 2009, Michael Schuerig wrote: > I've added a ticket for a rather experimental patch that modularizes > how the information displayed by /rails/info/properties and > script/about are collected > > https://rails.lighthouseapp.com/projects/8994-ruby-on- rails/

[Rails-core] Re: Finding the loaded plugins?

2009-05-21 Thread Michael Schuerig
On Thursday 21 May 2009, James Adam wrote: > On May 20, 8:30 pm, Mislav Marohnić wrote: > > On Wed, May 20, 2009 at 17:08, Michael Schuerig wrote: > > > > The problem is that the current Initializer instance isn't > > > > saved anywhere. > > > &

[Rails-core] Re: Finding the loaded plugins?

2009-05-20 Thread Michael Schuerig
On Wednesday 20 May 2009, Mislav Marohnić wrote: > On Wed, May 20, 2009 at 17:08, Michael Schuerig wrote: > > > The problem is that the current Initializer instance isn't saved > > > anywhere. > > > > > > If you change your environment.rb like this:

[Rails-core] Modularized Rails info aka /rails/info/properties

2009-05-20 Thread Michael Schuerig
7;m thinking of adding functionality for introspecting and changing parameters. I'm looking forward to technical comments and whether you consider this generally worthwhile or not. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www

[Rails-core] Re: Rails, Activism and Lack of API

2009-05-20 Thread Michael Schuerig
ate impression was that you're attacking(!) this issue in a rather unfortunate way. Too much aggression, too little understanding. If you feel piqued by my wording, you'll appreciate what I mean. Michael > On Wed, May 20, 2009 at 1:30 PM, Michael Schuerig wrote: > > On Wednesday 2

[Rails-core] Re: Finding the loaded plugins?

2009-05-20 Thread Michael Schuerig
On Wednesday 20 May 2009, Jeremy Kemper wrote: > On Wed, May 20, 2009 at 3:32 AM, Michael Schuerig wrote: > > Is there a way to find out which (gem) plugins are loaded without > > repeating work the initializer has already done? > > No, but it's been proposed: > ht

[Rails-core] Re: Rails, Activism and Lack of API

2009-05-20 Thread Michael Schuerig
. A defined interface could future-proof such code. It's unfortunate that the term API is used in this context as that's not what the problem is about. An SPI (Service PI) it is neither. I have no suggestion for a better term. Michael -- Michael Schue

[Rails-core] Re: Finding the loaded plugins?

2009-05-20 Thread Michael Schuerig
On Wednesday 20 May 2009, Mislav Marohnić wrote: > On Wed, May 20, 2009 at 12:32, Michael Schuerig wrote: > > Is there a way to find out which (gem) plugins are loaded without > > repeating work the initializer has already done? > > The problem is that the current Initi

[Rails-core] Finding the loaded plugins?

2009-05-20 Thread Michael Schuerig
Is there a way to find out which (gem) plugins are loaded without repeating work the initializer has already done? Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because

[Rails-core] Re: HasOneThroughAssociation should not be a child of HasManyThroughAssociation

2009-05-13 Thread Michael Schuerig
On Thursday 14 May 2009, Josh Susser wrote: > On May 13, 2009, at 3:37 PM, Michael Schuerig wrote: [...] > > ARec needs to take a step back from concrete SQL strings, toward > > abstract models of the various SQL statements. This (huge) step > > would allow for better modula

[Rails-core] Re: HasOneThroughAssociation should not be a child of HasManyThroughAssociation

2009-05-13 Thread Michael Schuerig
On Thursday 14 May 2009, Jeremy Evans wrote: > On Wed, May 13, 2009 at 3:37 PM, Michael Schuerig wrote: > > ARec needs to take a step back from concrete SQL strings, toward > > abstract models of the various SQL statements. This (huge) step > > would allow for better modula

[Rails-core] Re: HasOneThroughAssociation should not be a child of HasManyThroughAssociation

2009-05-13 Thread Michael Schuerig
models of the various SQL statements. This (huge) step would allow for better modularity, customizability, and easier expression of programmer intention. I have no idea how to introduce a change such as this as it would surely void backward compatibility. Sigh, only dreaming. Michael -- Michae

[Rails-core] Re: Foreign key constraints

2009-05-11 Thread Michael Schuerig
ention are not carried through to the schema.rb dump and therefore are not used in tests or any other databases constructed from the schema.rb Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You

[Rails-core] Re: Foreign key constraints

2009-04-27 Thread Michael Schuerig
associations http://agilewebdevelopment.com/plugins/enforce_schema_rules http://agilewebdevelopment.com/plugins/validation_reflection http://agilewebdevelopment.com/plugins/client_side_validation (the last one for inspiration only) Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.sc

[Rails-core] Breakage with Rack 1.0.0

2009-04-25 Thread Michael Schuerig
hen I understood even less about this then I do now. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core"

[Rails-core] Re: Foreign key constraints

2009-04-17 Thread Michael Schuerig
On Saturday 18 April 2009, pedz wrote: > On Apr 17, 5:10 pm, Michael Schuerig wrote: > > My general idea is to support only MySQL and PostgreSQL in the > > first iteration in case the other DBMS require special. Also, as > > there may be reservations about this feature

[Rails-core] Re: Foreign key constraints

2009-04-17 Thread Michael Schuerig
like to support constraints on polymorphic associations where possible. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[Rails-core] Foreign key constraints

2009-04-15 Thread Michael Schuerig
t waste my time. Michael -- Michael Schuerig mailto:mich...@schuerig.de http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this

[Rails-core] Re: [PATCH] More specific subclasses for ActiveRecord::StatementInvalid

2009-04-08 Thread Michael Schuerig
On Sunday 05 April 2009, Michael Schuerig wrote: > On Saturday 04 April 2009, Michael Koziarski wrote: > > On Sat, Apr 4, 2009 at 6:25 AM, Michael Schuerig > > > > wrote: > [...] > > > > Are there any general concerns against adding this functionality? > &g

[Rails-core] Re: More specific subclasses for ActiveRecord::StatementInvalid

2009-04-04 Thread Michael Schuerig
On Saturday 04 April 2009, Michael Koziarski wrote: > On Sat, Apr 4, 2009 at 6:25 AM, Michael Schuerig wrote: [...] > > Are there any general concerns against adding this functionality? > > Otherwise, I'll start work on a patch. > > I'd love this, it's on

[Rails-core] More specific subclasses for ActiveRecord::StatementInvalid

2009-04-03 Thread Michael Schuerig
uniqueness violations specially by raising RecordNotUnique, subclassed from StatementInvalid, with a suitable hint as to which constraint has been violated. Are there any general concerns against adding this functionality? Otherwise, I'll start work on a patch. Michael -- Michael Sch

[Rails-core] Re: Sanitizers: How to enforce valid markup?

2008-05-11 Thread Michael Schuerig
> On 11/05/2008, at 8:31 AM, Michael Schuerig <[EMAIL PROTECTED]> wrote: > > At this time I don't see much for core to do. Possibly add a stern > > warning to the docs, what the sanitize does and doesn't do. On Sunday 11 May 2008, Michael Koziarski wrote: > Th

[Rails-core] Re: Sanitizers: How to enforce valid markup?

2008-05-11 Thread Michael Schuerig
d a stern warning to the docs, what the sanitize does and doesn't do. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[Rails-core] Re: Sanitizers: How to enforce valid markup?

2008-05-10 Thread Michael Schuerig
eve this with the existing sanitizers out of the box. I could do some post-processing, of course, but that this is necessary detracts mightily from the usefulness of the sanitizers. As they are, they don't fit the purpose of deriving sane (well-formed) HTML from arbitrary input. I may be misun

[Rails-core] Sanitizers: How to enforce valid markup?

2008-05-10 Thread Michael Schuerig
n't see how to use the sanitizers as they currently are. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: C

[Rails-core] Re: Is it legal to override AR:Base#== and #eql?

2008-05-07 Thread Michael Schuerig
ckery', so if something does break you'll kinda be > on your own. Do let us know though ;) That's about what I thought :-| I think it should be stated in the docs one way or another, however, I don't yet know which way it is. Michael -- Michael

[Rails-core] Is it legal to override AR:Base#== and #eql?

2008-05-06 Thread Michael Schuerig
to database object identity. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to

[Rails-core] Re: Validation levels: errors, warnings

2008-05-04 Thread Michael Schuerig
sed neither lighthouse nor git before, I hope I didn't blow anything. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Rub

[Rails-core] Re: Validation levels: errors, warnings

2008-05-04 Thread Michael Schuerig
t;Something is wrong") wherever it applies with level defaulting to :errors, i.e. level = options[:level] ?   options[:level].to_s.pluralize.to_sym :     :errors Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~--

[Rails-core] Validation levels: errors, warnings

2008-05-02 Thread Michael Schuerig
hooks to add them myself in an app or plugin. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group

[Rails-core] Re: application.rb -> application_controller.rb

2008-01-16 Thread Michael Schuerig
On Wednesday 16 January 2008, Sven Fuchs wrote: > Did that answer your question? Yes, thanks. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails-core] Re: application.rb -> application_controller.rb

2008-01-16 Thread Michael Schuerig
. > > Right now one has to jump through hoops to do that (and, above all,   > know which ones and how). Would you mind to elaborate? I don't understand what you mean, but I'm curious. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-

[Rails-core] [XPATCH] Optional app-specific configuration files for plugins

2007-12-15 Thread Michael Schuerig
I'm looking forward to comments on http://dev.rubyonrails.org/ticket/10512 The point of the patch is to enable clean, application-specific configuration for plugins that need it. No more MY_PLUGIN_SOME_CONFIG in environment.rb. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED]

[Rails-core] Re: Included associations, limiting and subselects

2006-12-16 Thread Michael Schuerig
independently check this behavior, to confirm that the current implementation without subselect does not hurt performance. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message b

[Rails-core] Included associations, limiting and subselects

2006-12-14 Thread Michael Schuerig
ch in turn could be supplied by the respective adapters. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core&

[Rails-core] Re: Object Oriented Model Helpers

2006-12-08 Thread Michael Schuerig
higher layer uses. If indeed no more flexibility is needed, then it would be a lot simpler to mix-in the helper methods into ActiveRecord::Base and Array and be done with it. OTOH, if there is a need to potentially have different implementations of helper methods, then the existing flexibility could

[Rails-core] Re: Object Oriented Model Helpers

2006-12-08 Thread Michael Schuerig
(Statically scoping mixins would be useful in its own right to keep independent extensions of core or rails classes from treading on each others feet.) Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ Yo

[Rails-core] Re: Migrations and SVN branches (comments requested)

2006-12-08 Thread Michael Schuerig
sponding revision numbers. This approach doesn't guarantee that there can be no conflicts when branches are merged, but I think this can't be guaranteed anyway. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~-

[Rails-core] Re: Object Oriented Model Helpers

2006-12-08 Thread Michael Schuerig
27;t jump from scepticism to condemnation. Nonetheless, I think the most important task for people sporting this approach is to present a convincing case of how it improves on the current state. How about a couple of examples that demonstrate the beauty of doing things your way? Michael [*] h

[Rails-core] Re: Using Active Record to process large tables.

2006-11-02 Thread Michael Schuerig
ther likely, consider using pessimistic locking. It's not yet available in a released version of Rails/ActiveRecord, but will apparently be in 1.2. Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You

[Rails-core] Semantics of transaction blocks

2006-09-17 Thread Michael Schuerig
What do you think? Michael -- Michael Schuerig mailto:[EMAIL PROTECTED] http://www.schuerig.de/michael/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this