Regarding tutorials/docs -- would there really be a problem with doing this,
then:
class ActiveRecord
Base = self
end
In other words, ::Base would still work, it'd just be redundant, and
probably depricated.
As for the clarity, there's plenty of indirection anyway. I'd rather have a
clear API.
On Thu, Oct 9, 2008 at 4:40 PM, David Masover <[EMAIL PROTECTED]> wrote:
> Regarding tutorials/docs -- would there really be a problem with doing this,
> then:
>
> class ActiveRecord
> Base = self
> end
That breaks code that assumes ActiveRecord is a module and not a
class, which is going to be
On Thu, Oct 9, 2008 at 3:56 PM, Ryan Bigg <[EMAIL PROTECTED]> wrote:
>
> It's too major of a change to make imo and there's just too many
> tutorials/docs out there that reference Class Model <
> ActiveRecord::Base. To me, it makes sense that a model "inherits from"
> ActiveRecord::Base because th
I always assumed that AR::Base and AC::Base's name came from the concept of
an abstract base class. I think ::Base is a fine name for the top-most
superclass in a module, but that might just be a side effect of previous
experience.
-Trek
On Thu, Oct 9, 2008 at 12:42 PM, Manfred Stienstra <[EMAIL
It's too major of a change to make imo and there's just too many
tutorials/docs out there that reference Class Model <
ActiveRecord::Base. To me, it makes sense that a model "inherits from"
ActiveRecord::Base because that's where a model gets its methods from.
-
Ryan Bigg
Freelancer
htt
On Oct 9, 2008, at 7:58 PM, S. Brent Faulkner wrote:
>
>> One of the things about the Rails code that people tend to frown upon
>> is the Base class. I was wondering if anyone ever considered
>> replacing
>
> Can you point me in the direction of some discussion of what's wrong
> with the "Base
I'm updating an app and wanted to install rspec.
After installing the gem into the system I added:
config.gem "rspec-rails", :lib => "spec"
to config/environment.rb and ran:
rake gems:install
However the install does not complete because my initializer is not run.
In my initializer I d
I did a quick benchmark of ZAML and found it to be slower:
http://pastie.org/288592
On Oct 9, 11:52 am, "Duncan Beevers" <[EMAIL PROTECTED]> wrote:
> There are also faster YAML dumpers out there. A recent Portland code sprint
> produced ZAML, a work-in-progress that offers (if I recall correct
Hi Manfred
> One of the things about the Rails code that people tend to frown upon
> is the Base class. I was wondering if anyone ever considered replacing
Can you point me in the direction of some discussion of what's wrong
with the "Base class" that people "frown upon"?
Just wondering, since
There are also faster YAML dumpers out there. A recent Portland code sprint
produced ZAML, a work-in-progress that offers (if I recall correctly)
something like a 14x speed boost over vanilla YAML.dump
http://github.com/hallettj/zaml/tree/master/zaml.rb
YAML's slowness has been a pain point, but
Hi,
One of the things about the Rails code that people tend to frown upon
is the Base class. I was wondering if anyone ever considered replacing
it with with a class name that reflects the actual function of the
class? Maybe we could even use ActiveRecord as a 'base class' for
models? Sta
I've given up trying to patch the first one Frederick Cheung wanted
(1104-references_eager_loaded_tables-should-search-tables-in-join-
clauses), in favor of this approach:
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1185-old-single-query-includes-should-be-globally-disablea
Yes; after Fred's post I did a bit more research and realize it's a
big no for portable apps. Not an impossible hurdle to deal with, but
not a desirable default. I also realized that AR in its current state
has no simple interface for such an option: quoting's serialization is
abstracted away from
To add additional point for -1: Marshal uses a binary format and does
not guarantee any compatibility with anything except the ruby on the
computer which created it. Marshal uses internal format versioning
numbers which do not correspond to ruby versions. This means your
database backups
14 matches
Mail list logo