25 Sep '13, 9pm

@andrzejkrzywda you can call .except(:order) on relation first as well

Removes from the query the condition(s) specified in skips . Example: Post . order (' id asc '). except ( :order ) # discards the order condition Post . where (' id > 10 '). order (' id asc '). except ( :where ) # discards the where condition but keeps the order Show source # File activerecord/lib/active_record/relation/spawn_methods.rb, line 82 def except (* skips ) result = self . class . new ( @klass , table ) result . default_scoped = default_scoped (( Relation :: ASSOCIATION_METHODS + Relation :: MULTI_VALUE_METHODS ) - skips ). each do | method | result . send ( :" #{method} _values= " , send ( :" #{method} _values " )) end ( Relation :: SINGLE_VALUE_METHODS - skips ). each do | method | result . send ( :" #{method} _value= " , send ( :" #{method} _value " )) end # Apply scope extension modules result . send ( :apply_modules , extensions ) result end

Full article: http://apidock.com/rails/ActiveRecord/SpawnMethods/except

Tweets

Writing well formed user stories

pivotallabs.com 26 Sep '13, 11am

Well Formed stories truly drive out the feature from the user’s perspective; this catches 80% of weird edge cases while th...

How an old concept can kickstart new US solar

How an old concept can kickstart new US solar

greenbiz.com 25 Sep '13, 10am

Clean energy advocates almost universally revere Germany, myself included. Oft-heard declarations include: "Did you know s...

“ActionController::Streaming - APIdock”

apidock.com 06 Oct '13, 12pm

This means that, if you have yield :title in your layout and you want to use streaming, you would have to render the whole...

First Computer Made From Carbon Nanotubes Debuts

First Computer Made From Carbon Nanotubes Debuts

spectrum.ieee.org 25 Sep '13, 5pm

To make a process that could work in a commercial chip fab, the Stanford team developed a set of techniques they dub imper...

Suntory Single Malts: Don’t Call Them Scotch

robbreport.com 26 Sep '13, 9am

It’s difficult to say the words “single malt” without quickly following them up with “scotch.” But while Scotland is indee...

just learnt: you can't overwrite an .order in A...

apidock.com 25 Sep '13, 9pm

Replaces any existing order defined on the relation with the specified order . User . order (' email DESC '). reorder (' i...

(SDP) Comparing SDP's S'poreans First Policy and MOM's FCF

(SDP) Comparing SDP's S'poreans First Policy an...

yoursdp.org 26 Sep '13, 5am

The Ministry of Manpower's (MOM) recent announcement to require employers in Singapore to first consider hiring Singaporea...

Google: 70% of Mobile Searchers Call a Business Directly From Search Results [Study]

Google: 70% of Mobile Searchers Call a Business...

searchenginewatch.com 24 Sep '13, 4pm

Whether someone is searching on their mobile device for a restaurant, a local service, or a car rental, the presence of a ...

New research shows that 70% of mobile searchers call a business directly from search results

New research shows that 70% of mobile searchers...

adwords.blogspot.com 24 Sep '13, 4pm

E-commerce continues to grow quickly with people shopping across a variety of devices, but often times there is no compari...

This is @lbminion1 article on call speech: Stat...

loyarburok.com 20 Sep '13, 1am

Thank you for your impassioned eloquence which possess immense sound and fury but appears inversely proportionate to the c...

@uncuyo: bases del Fondo Común de Commodities: Cierre: 4 de octubre

@uncuyo: bases del Fondo Común de Commodities: ...

common-fund.org 24 Sep '13, 4pm

Outcome of Second Open Call for proposals CFC concludes technical consideration of projects received in the second open ca...

Google

searchengineland.com 23 Sep '13, 3pm

In the past month, Google quietly made a change aimed at encrypting all search activity — except for clicks on ads. Google...

How aluminium can reduce energy consumption #greenenergy

How aluminium can reduce energy consumption #gr...

thegreencarwebsite.co.uk 23 Sep '13, 7am

Wondering why car manufacturers are turning away from high strength steel and looking towards aluminium for body construct...

European renewables industry unites in call for 2030 renewable energy target

European renewables industry unites in call for...

r-e-a.net 18 Sep '13, 1pm

European renewables industry unites in call for 2030 renewable energy target Posted: 18 September, 2013. Written by REA Ne...

Paris Launches Submission Period to Allocate th...

domainnews.com 23 Sep '13, 4am

Paris Launches Submission Period to Allocate the First 100 .Paris new gTLD Domains Tweet The City of Paris announced that ...