[#360221] Its a bird, its a plane, its.. um, an Attribute based System? — thunk <gmkoller@...>

15 messages 2010/04/01

[#360275] combined ranges... — Roger Pack <rogerpack2005@...>

Anybody know if there's an easy way to accomplish the equivalent of

26 messages 2010/04/02
[#360276] Re: combined ranges... — David Springer <dnspringer@...> 2010/04/02

Will this work:

[#360283] Re: combined ranges... — Roger Pack <rogerpack2005@...> 2010/04/02

David Springer wrote:

[#360285] Re: combined ranges... — Rick DeNatale <rick.denatale@...> 2010/04/02

On Fri, Apr 2, 2010 at 6:33 PM, Roger Pack <rogerpack2005@gmail.com> wrote:

[#360331] ThunkGen released! — Andrea Dallera <andrea@...>

Ahem...

98 messages 2010/04/03

[#360366] $SAFE=0 for setuid? — Rick Ashton <expiation@...>

Hi

17 messages 2010/04/04
[#360378] Re: $SAFE=0 for setuid? — Jonathan Nielsen <jonathan@...> 2010/04/04

> From most documentation I see that $SAFE is automatically set to 1 if

[#360381] Re: $SAFE=0 for setuid? — Rick Ashton <expiation@...> 2010/04/04

Jonathan Nielsen wrote:

[#360418] Novice school teacher seeking help in programming — Hilary Bailey <my77elephants@...>

I will like to know how to use programming languages to create a

20 messages 2010/04/05
[#360419] Re: Novice school teacher seeking help in programming — Jes俍 Gabriel y Gal疣 <jgabrielygalan@...> 2010/04/05

On Mon, Apr 5, 2010 at 5:23 PM, Hilary Bailey <my77elephants@gmail.com> wrote:

[#360420] Re: Novice school teacher seeking help in programming — Hilary Bailey <my77elephants@...> 2010/04/05

Jes炭s Gabriel y Gal叩n wrote:

[#360595] modifying a Hash in one process when .each is running in another — Nathan <njmacinnes@...>

I want one process to continually loop through a list of objects (in

11 messages 2010/04/07
[#360597] Re: modifying a Hash in one process when .each is running in another — Brian Candler <b.candler@...> 2010/04/07

Nathan Macinnes wrote:

[#360598] Re: modifying a Hash in one process when .each is running in another — Nathan <njmacinnes@...> 2010/04/07

Thanks for the clarification... My application is network based, and

[#360651] Is it possible, a fully general Enumerable#recursive ? — Intransition <transfire@...>

For the last couple of days I've been trying to write an Enumerable

28 messages 2010/04/07
[#360670] Re: Is it possible, a fully general Enumerable#recursive ? — David Masover <ninja@...> 2010/04/08

On Wednesday 07 April 2010 04:49:15 pm Intransition wrote:

[#360784] Re: Is it possible, a fully general Enumerable#recursive ? — Robert Dober <robert.dober@...> 2010/04/09

On Thu, Apr 8, 2010 at 5:51 AM, David Masover <ninja@slaphack.com> wrote:

[#360790] Re: Is it possible, a fully general Enumerable#recursive ? — Intransition <transfire@...> 2010/04/09

[#360898] Re: Is it possible, a fully general Enumerable#recursive ? — Robert Klemme <shortcutter@...> 2010/04/11

On 04/09/2010 08:53 PM, Intransition wrote:

[#360935] Re: Is it possible, a fully general Enumerable#recursive ? — Robert Dober <robert.dober@...> 2010/04/12

On Sun, Apr 11, 2010 at 10:55 PM, Robert Klemme

[#360945] Re: Is it possible, a fully general Enumerable#recursive ? — Robert Klemme <shortcutter@...> 2010/04/12

2010/4/12 Robert Dober <robert.dober@gmail.com>:

[#360760] The Ruid Concept, with question — thunk <gmkoller@...>

The Ruid Concept

32 messages 2010/04/09

[#360783] Ruby-warrior : Teaching AI concepts with Ruby — Aldric Giacomoni <aldric@...>

I think this project doesn't get enough attention :-)

24 messages 2010/04/09

[#360910] attr_accessor, but for a boolean — Albert Schlef <albertschlef@...>

Let's say I have this code:

13 messages 2010/04/12

[#360981] Method to groom a string to floating point representation — Alex DeCaria <alex.decaria@...>

I have a program that asks for the user to enter a string that

16 messages 2010/04/13
[#360986] Re: Method to groom a string to floating point representation — Josh Cheek <josh.cheek@...> 2010/04/13

On Mon, Apr 12, 2010 at 9:34 PM, Alex DeCaria <alex.decaria@millersville.edu

[#360994] Re: Method to groom a string to floating point representation — Alex DeCaria <alex.decaria@...> 2010/04/13

Josh Cheek wrote:

[#361047] Re: Method to groom a string to floating point representation — Josh Cheek <josh.cheek@...> 2010/04/14

On Tue, Apr 13, 2010 at 6:20 AM, Alex DeCaria <alex.decaria@millersville.ed=

[#361015] How to find multiple matches in a string — Alex DeCaria <alex.decaria@...>

I know how to use regular expressions to find the first match of a

11 messages 2010/04/13

[#361038] I thought spaces didn't matter around operators — Sarah Allen <sarah@...>

I had understood that operators, like minus (-), had special "syntactic

15 messages 2010/04/13

[#361055] Who maintains ruby-talk? — Tony Arcieri <tony.arcieri@...>

Among other things, the ruby-talk MLM is rampant with security

70 messages 2010/04/14
[#361066] Re: Who maintains ruby-talk? — Robert Klemme <shortcutter@...> 2010/04/14

2010/4/14 Tony Arcieri <tony.arcieri@medioh.com>:

[#361079] Re: Who maintains ruby-talk? — Tony Arcieri <tony.arcieri@...> 2010/04/14

On Wed, Apr 14, 2010 at 6:21 AM, Robert Klemme

[#361084] Re: Who maintains ruby-talk? — Josh Cheek <josh.cheek@...> 2010/04/14

On Wed, Apr 14, 2010 at 9:52 AM, Tony Arcieri <tony.arcieri@medioh.com>wrote:

[#361138] Re: Who maintains ruby-talk? — Justin Collins <justincollins@...> 2010/04/14

Tony Arcieri wrote:

[#361155] Re: Who maintains ruby-talk? — Tony Arcieri <tony.arcieri@...> 2010/04/15

On Wed, Apr 14, 2010 at 4:18 PM, Justin Collins <justincollins@ucla.edu>wrote:

[#361159] Re: Who maintains ruby-talk? — Tony Arcieri <tony.arcieri@...> 2010/04/15

On Wed, Apr 14, 2010 at 11:54 PM, Tony Arcieri <tony.arcieri@medioh.com>wrote:

[#361209] Re: Who maintains ruby-talk? — Walton Hoops <walton@...> 2010/04/15

On 4/15/2010 12:00 AM, Tony Arcieri wrote:

[#361141] Is this good OOP structuring? — Derek Cannon <novellterminator@...>

Hello everyone. I'm trying to get a hang of object-oriented programming

14 messages 2010/04/15
[#361157] Re: Is this good OOP structuring? — Robert Klemme <shortcutter@...> 2010/04/15

On 15.04.2010 02:46, Derek Cannon wrote:

[#361242] Re: Is this good OOP structuring? — Robert Dober <robert.dober@...> 2010/04/15

On Thu, Apr 15, 2010 at 8:00 AM, Robert Klemme

[#361254] Re: Is this good OOP structuring? — Derek Cannon <novellterminator@...> 2010/04/16

>class CourseController

[#361279] Writing a parser — Martin Hansen <mail@...>

Hello there,

18 messages 2010/04/16

[#361322] iconv transfer code — Pen Ttt <myocean135@...>

in my computer(ubuntu9.1+ruby1.9):

14 messages 2010/04/17
[#361372] Re: iconv transfer code — Brian Candler <b.candler@...> 2010/04/18

Pen Ttt wrote:

[#361366] Elegant Solution to a Seemingly Simple Problem? — Derek Cannon <novellterminator@...>

Hello everyone. It's me: Derek, again! Sorry for writing a novel here,

12 messages 2010/04/18

[#361396] ruby 1.9+ , floats, and decimal — botp <botpena@...>

> 0.2-0.1

18 messages 2010/04/19
[#361399] Re: ruby 1.9+ , floats, and decimal — Christopher Dicely <cmdicely@...> 2010/04/19

On Sun, Apr 18, 2010 at 8:07 PM, botp <botpena@gmail.com> wrote:

[#362518] Re: ruby 1.9+ , floats, and decimal — Rick DeNatale <rick.denatale@...> 2010/05/11

On Mon, Apr 19, 2010 at 1:24 AM, Christopher Dicely <cmdicely@gmail.com> wrote:

[#361454] DrX, an object inspector — "Mooffie n/a" <mooffie@...>

DrX is an object inspector (and a source-code browser).

32 messages 2010/04/20
[#361470] Re: [ANN] DrX, an object inspector — David Espada <davinciSINSPAM@...> 2010/04/20

El martes 20 de abril, Mooffie n/a escribi坦:

[#361504] Re: DrX, an object inspector — "Mooffie n/a" <mooffie@...> 2010/04/21

David Espada wrote:

[#361459] [RFC] Proposing a Ruby Packaging Standard — Christian Neukirchen <chneukirchen@...>

Hello,

34 messages 2010/04/20
[#361487] Re: [RFC] Proposing a Ruby Packaging Standard — Suraj Kurapati <sunaku@...> 2010/04/20

Hi,

[#361528] Ruby 1.9.1, Threads and "[BUG] The handle is invalid." — John Briggs <aazman.w@...>

Hi!

11 messages 2010/04/21

[#361587] Best way to write this method? — Derek Cannon <novellterminator@...>

Could my code below be more Ruby-esque or simpler (using Ruby methods I

13 messages 2010/04/22
[#361625] Re: Best way to write this method? — Derek Cannon <novellterminator@...> 2010/04/23

If you guys need some better clarification as to what these methods do:

[#361631] Re: Best way to write this method? — Robert Klemme <shortcutter@...> 2010/04/23

2010/4/23 Derek Cannon <novellterminator@gmail.com>:

[#361688] Segmentation fault at raise exception. — O01eg Oleg <o01eg@...>

I get segfault at any Ruby exception with C API:

13 messages 2010/04/24

[#361755] Networking: select() blocks for seconds (> timeout) — Raul Parolari <raulparolari@...>

I am using Ruby (as a prototype version) to communicate with a network

27 messages 2010/04/26
[#361833] Re: Networking: select() blocks for seconds (> timeout) — Caleb Clausen <vikkous@...> 2010/04/27

On 4/25/10, Raul Parolari <raulparolari@gmail.com> wrote:

[#361845] Re: Networking: select() blocks for seconds (> timeout) — Raul Parolari <raulparolari@...> 2010/04/27

Caleb Clausen wrote:

[#361888] Re: Networking: select() blocks for seconds (> timeout) — Caleb Clausen <vikkous@...> 2010/04/28

On 4/27/10, Raul Parolari <raulparolari@gmail.com> wrote:

[#365061] Re: Networking: select() blocks for seconds (> timeout) — Raul Parolari <raulparolari@...> 2010/06/30

I have some final results on the problem described.

[#365070] Re: Networking: select() blocks for seconds (> timeout) — Roger Pack <rogerpack2005@...> 2010/06/30

[#365078] Re: Networking: select() blocks for seconds (> timeout) — Raul Parolari <raulparolari@...> 2010/06/30

Roger Pack wrote:

[#365091] Re: Networking: select() blocks for seconds (> timeout) — Roger Pack <rogerpack2005@...> 2010/06/30

[#361896] Use of STDOUT.flush after puts — Alex DeCaria <alex.decaria@...>

I've seen several examples on this forum where folks have used

22 messages 2010/04/28
[#361897] Re: Use of STDOUT.flush after puts — Dave Baldwin <dave.baldwin@3dlabs.com> 2010/04/28

[#361916] Re: Use of STDOUT.flush after puts — Siep Korteling <s.korteling@...> 2010/04/29

Dave Baldwin wrote:

[#361917] Re: Use of STDOUT.flush after puts — Robert Dober <robert.dober@...> 2010/04/29

On Thu, Apr 29, 2010 at 9:16 AM, Siep Korteling <s.korteling@gmail.com> wrote:

[#361921] Re: Use of STDOUT.flush after puts — hemant <gethemant@...> 2010/04/29

On Thu, Apr 29, 2010 at 1:28 PM, Robert Dober <robert.dober@gmail.com> wrote:

[#361930] Re: Use of STDOUT.flush after puts — Robert Dober <robert.dober@...> 2010/04/29

On Thu, Apr 29, 2010 at 2:31 PM, hemant <gethemant@gmail.com> wrote:

[#361932] Re: Use of STDOUT.flush after puts — hemant <gethemant@...> 2010/04/29

On Thu, Apr 29, 2010 at 10:56 PM, Robert Dober <robert.dober@gmail.com> wro=

[#361936] Re: Use of STDOUT.flush after puts — Robert Dober <robert.dober@...> 2010/04/29

On Thu, Apr 29, 2010 at 8:25 PM, hemant <gethemant@gmail.com> wrote:

[#361962] Return values of modifiers — Michel Demazure <michel@...>

This is logical, but no very useful :

22 messages 2010/04/30
[#361968] Re: Return values of modifiers — Robert Klemme <shortcutter@...> 2010/04/30

2010/4/30 Michel Demazure <michel@demazure.com>:

[#361970] Re: Return values of modifiers — Michel Demazure <michel@...> 2010/04/30

Robert Klemme wrote:

[#361976] Re: Return values of modifiers — "David A. Black" <dblack@...> 2010/04/30

Hi --

[#361978] Re: Return values of modifiers — Michel Demazure <michel@...> 2010/04/30

David A. Black wrote:

[#362010] Re: Return values of modifiers — Benoit Daloze <eregontp@...> 2010/04/30

Sure, it would be nice while/until loops return value of the last iteration,

[#361963] Switching dynamically between methods (inside modules) — "Paul A." <cyril.staff@...>

Hi,

9 messages 2010/04/30

[#361983] Inverse of stream parser — Brian Candler <b.candler@...>

I plan to parse a huge XML document (too big to fit into RAM) using a

14 messages 2010/04/30

[#361989] Cann't require UTF-8 files. — O01eg Oleg <o01eg@...>

When I require file with UTF-8 encoding I get error:

14 messages 2010/04/30
[#361997] Re: Cann't require UTF-8 files. — Caleb Clausen <vikkous@...> 2010/04/30

On 4/30/10, O01eg Oleg <o01eg@yandex.ru> wrote:

[#362008] Setting to Ruby 1.9 in Ubuntu... — Xeno Campanoli / Eskimo North and Gmail <xeno.campanoli@...>

I tried installing a bunch of ruby 1.9 stuff on my Ubuntu laptop last night, but

15 messages 2010/04/30
[#362009] Re: Setting to Ruby 1.9 in Ubuntu... — Walton Hoops <walton@...> 2010/04/30

On 4/30/2010 1:36 PM, Xeno Campanoli / Eskimo North and Gmail wrote:

ANN: Sequel 3.10.0 Released

From: Jeremy Evans <code@...>
Date: 2010-04-02 21:46:33 UTC
List: ruby-talk #360281
Sequel is a lightweight database access toolkit for Ruby.

* Sequel provides thread safety, connection pooling and a concise DSL
  for constructing database queries and table schemas.
* Sequel also includes a lightweight but comprehensive ORM layer for
  mapping records to Ruby objects and handling associated records.
* Sequel supports advanced database features such as prepared
  statements, bound variables, stored procedures, master/slave
  configurations, and database sharding.
* Sequel makes it easy to deal with multiple records without having
  to break your teeth on SQL.
* Sequel currently has adapters for ADO, Amalgalite, DataObjects,
  DB2, DBI, Firebird, Informix, JDBC, MySQL, ODBC, OpenBase, Oracle,
  PostgreSQL and SQLite3.

Sequel 3.10.0 has been released and should be available on the gem
mirrors.

New Features
------------

* A real one_to_one association was added to Sequel, replacing the
  previous :one_to_one option of the one_to_many association.

  This is a fully backwards incompatible change, any code that uses
  the :one_to_one option of one_to_many will be broken in Sequel
  3.10.0, as that option now raises an exception.  Keeping backwards
  compatibility was not possible, as even the name of the association
  needs to be changed.  Here are the code changes you need to make:

  * The association definition needs to change from one_to_many to
    one_to_one, with no :one_to_one option, and with the association
    name changed from the plural form to the singular form:

      # Before
      Lyric.one_to_many :songs, :one_to_one=>true
      # After
      Lyric.one_to_one :song

  * All usage of the association when eager loading or when getting
    reflections need to use the new singular association name:

      # Before
      Lyric.eager(:songs).all
      Lyric.eager_graph(:songs).all
      Lyric.association_reflection(:songs)
      # After
      Lyric.eager(:song).all
      Lyric.eager_graph(:song).all
      Lyric.association_reflection(:song)

  Any Sequel plugins or extensions that deal with the internals of
  associations need to be made aware of the one_to_one association,
  and how it is different than one_to_many's previous :one_to_one
  option.  Here are some internal changes that may affect you:

  * one_to_one associations are now cached like many_to_one
    associations instead of like one_to_many associations.  So the
    cache includes the associated object or nil, instead of an array.
    Note that this change means that all custom :eager_loader options
    for one_to_one associations need to change to use this new
    caching scheme.

  * The one_to_one association setter method is now handled similarly
    to the many_to_one setter method, instead of using the internal
    one_to_many association add method.

  * Instead of raising an error when multiple rows are returned,
    one_to_one associations now use limit(1) to only return a single
    row.

  There were some other fixes made during these changes:

  * The one_to_one setter now accepts nil to disassociate the record.
    Previously, this raised an error.

  * If the one_to_one association already had a separate object
    associated, and you assigned a different object in the setter
    method, Sequel now disassociates the old object before
    associating the new object, fixing some potential issues if there
    is a UNIQUE constraint on the foreign key column.

  * Using the many_to_one association setter where the reciprocal
    association is a one_to_one association with a currently
    different cached associated object no longer raises an exception.

  * The nested_attributes and association_dependencies plugins
    both now correctly handle one_to_one associations.

  If you need any help migrating, please post on the Sequel Google
  Group or ask in the #sequel IRC channel.

* Both many_to_one and one_to_one associations now use before_set
  and after_set callbacks instead of trying to make the one_to_many
  and many_to_many associations' (before|after)_(add|remove)
  callbacks work.

  This change makes the code simpler, makes writing callbacks easier,
  and no longer requires Sequel to send a query to the database to
  get the currently associated object in the many_to_one association
  setter method (you can still do so manually in a before_set
  callback if you want to).

* Dataset#for_update was added as a default dataset method.
  Previously, it was only supported on PostgreSQL.  It has been
  tested to work on PostgreSQL, MySQL, SQLite (where it is ignored),
  H2, and MSSQL.

* Dataset#lock_style was added as a backbone for Dataset#for_update,
  but allowing you to specify custom lock styles.  These can either
  be symbols recognized by the adapters, or strings which are treated
  as literal SQL.

* Model#lock! was added, which uses Dataset#for_update to lock model
  rows for specific instances.  Combined with the Dataset#for_update,
  Sequel now has an equivalent to ActiveRecord's pessimistic locking
  support.

* A composition plugin was added, given similar functionality as
  ActiveRecord's composed_of.

  The composition plugin allows you to easily define getter and
  setter instance methods for a class where the backing data is
  composed of other getters and decomposed to other setters.

  A simple example of this is when you have a database table with
  separate columns for year, month, and day, but where you want to
  deal with Date objects in your ruby code.  This can be handled
  with:

    Model.composition :date, :mapping=>[:year, :month, :day]

  The :mapping option is optional, but if not used, you need define
  custom composition and decomposition procs via the :composer and
  :decomposer options.

  Note that when using the composition object, you should not modify
  the underlying columns if you are also instantiating the
  composition, as otherwise the composition object values will
  override any underlying columns when the object is saved.

* An rcte_tree plugin was added, which uses recursive common table
  expressions to load all ancestors and descendants in a single
  query.  If your database supports recursive common table
  expressions (PostgreSQL 8.4+, MSSQL 2005+, newer versions of
  Firebird), using recursive common table expressions to load
  all ancestors and descendants is significantly faster than storing
  trees as nested sets and using nested set queries.  Usage:

    Model.plugin :rcte_tree

    # Lazy loading
    model = Model.first
    model.parent
    model.children
    model.ancestors # Populates :parent association as well
    model.descendants # Populates :children association as well

    # Eager loading - also populates the :parent and children
    # associations for all ancestors and descendants
    Model.filter(:id=>[1, 2]).eager(:ancestors, :descendants).all

    # Eager loading children and grandchildren
    Model.filter(:id=>[1, 2]).eager(:descendants=>2).all
    # Eager loading children, grandchildren, and great grandchildren
    Model.filter(:id=>[1, 2]).eager(:descendants=>3).all

* Dataset#first_source_table was added, giving you the unaliased
  version of the table for the first source.

* Add Sequel::BasicObject.remove_methods!, useful on ruby 1.8 if you
  require other libraries after Sequel that add methods to Object.
  For example, if YAML is required after sequel, then the following
  will raise an error:

    DB[:a].filter{x > y}

  because YAML adds the y method to all objects.  Now, you can call
  Sequel::BasicObject.remove_methods!, which will remove those
  methods from Sequel::BasicObject, allowing them to be used as
  intended in the above DSL.

* Sequel associations now accept an :eager_loader_key option, which
  can be useful for associations to specify the column to use for the
  key_hash for custom :eager_loaders.

* A JDBC subadapter for the AS400 database was added.

Other Improvements
------------------

* The one_to_one setter method and the one_to_many and many_to_many
  remove_all methods now apply the association options (such as
  filters) on the appropriate dataset:

    Artist.one_to_many :good_albums, :class=>:Album,
     :conditions=>{:good=>true}
    a = Artist[10]
    a.remove_all_good_albums
    # Before: WHERE artist_id = 10
    # After:  WHERE artist_id = 10 AND good IS TRUE

* Plugin loading now works correctly when the plugin module name
  is the same name as an already defined top level constant.  This
  means that the active_model plugin should now work correctly if
  you require active_model before loading the Sequel plugin.

* The nested_attributes plugin now preserves nested attributes for
  *_to_one associations on validation failures.

* Transactions now work correctly on Oracle when using the JDBC
  adapter.

* Dataset#limit once again works correctly on MSSQL 2000.  It was
  broken in Sequel 3.9.0.

* many_to_one associations now use limit(1) to ensure only one
  record is returned.  If you don't want this (because maybe you
  are using the :eager_graph association option), you need to
  set the :key option to nil and use a custom :dataset option.

* many_to_one and one_to_many associations now work correctly
  with the association :eager option to eagerly load associations
  specified by :eager when lazy loading the association.

* The typecast_on_load plugin now correctly handles
  reloading/refreshing the object, both explicitly and implicitly
  on object creation.

* The schema parser and dumper now return tinyint columns as
  booleans when connecting to mysql using the do adapter, since
  DataObjects now returns the columns as booleans.

* The schema dumper now deals better with unusual or database
  specific primary key types when using the :same_db option.

* On ruby 1.8, Sequel::BasicObject now undefs private methods in
  addition to public and protected methods.  So the following
  code now works as expected:

    DB[:a].filter{x > p} # WHERE x > p

* Sequel.connect with a block now returns the value of the block:

    max_price = Sequel.connect('sqlite://items.db') do |db|
      db[:items].max(:price)
    end

* MSSQL emulated offset support now works correctly when Sequel's
  core extensions are not loaded.

* Sequel::BasicObject now works correctly on rubinius, and almost
  all Sequel specs now pass on rubinius.

* The nested_attributes plugin now uses a better exception message
  no matching associated object is found.

* Sequel now raises a more informative error if you attempt to use
  the native sqlite adapter with the sqlite3 gem instead of the
  sqlite3-ruby gem.

* Multiple complex expressions with the same operator are now
  combined for simpler SQL:

    DB[:a].filter(:a=>1, :b=>2).filter(:c=>3)
    # Before: (((a = 1) AND (b = 2)) AND (c = 3))
    # After:  ((a = 1) AND (b = 2) AND (c = 3))

* The Sequel::Model dataset methods (class methods proxied to the
  model's dataset) and the Sequel::Dataset mutation methods
  (methods that have a ! counterpart to modify the object in place)
  have both been updated to use new dataset methods added in recent
  versions.

Backwards Compatibility
-----------------------

* The :one_to_one option of the one_to_many associations now raises
  an exception.  Please see the section above about the new real
  one_to_one association.

* The change to apply the association options to the one_to_many and
  many_to_many remove_all methods has the potential to break some
  code that uses the remove_all method on associations that use
  association options. This is especially true for many_to_many
  associations, as filters in many_to_many associations will often
  reference columns in the associated table, while the dataset
  used in the remove_all method only contains the join table.  Such
  cases should be handled by manually overriding the _remove_all
  association instance method in the class.  It was determined that
  it was better to issue possibly invalid queries than to issue
  queries that make unexpected modifications.

* Dataset#group_and_count now longer orders the dataset by the count.
  Since it returns a modified dataset, if you want to order the
  dataset, just call order on the returned dataset.

* many_to_one associations now require a working :class option.
  Previously, if you provided a custom :dataset option, a working
  :class option was not required in some cases.

* The MSSQL shared adapter dataset methods switched from using
  the :table_options internal option key to using the :lock internal
  option key.

Thanks,
Jeremy

* {Website}[http://sequel.rubyforge.org]
* {Source code}[http://github.com/jeremyevans/sequel]
* {Blog}[http://sequel.heroku.com]
* {Bug tracking}[http://code.google.com/p/ruby-sequel/issues/list]
* {Google group}[http://groups.google.com/group/sequel-talk]
* {RDoc}[http://sequel.rubyforge.org/rdoc]
-- 
Posted via http://www.ruby-forum.com/.

In This Thread

Prev Next