Displaying 20 results from an estimated 2000 matches similar to: "A couple of patches"
2010 Aug 24
0
Rails 3 Observer: No support for after_commit?
Rails 3 adds after_commit and after_rollback callbacks, but it appears
they are not available as methods in an Observer. Is that the way it''s
supposed to be, an oversight, or am I doing it wrong?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 May 05
2
Add method to get at captured content_for
In Rails 3 the only way to get for content captured with the
content_for method in a view is to call yield from within a view.
However, sometimes is it useful to get to this data from within a
helper (for instance to provide a default value). Calling yield from
within the helper method won''t work, and accessing the @_content_for
variable directly is not encouraged.
Proposed solution: add
2011 Jan 14
4
Rails 3 / RSpec 2 use_transactional_fixtures and after_commit
We''re migrating a Rails 2.3.x application to Rails 3 and RSpec 2.x.
In Rails 2.3.x we were using
https://github.com/freelancing-god/after_commit to provide
after_commit functionality (now provided by Rails 3).
The plugin version of after_commit came with some helpers to make
testing with `use_transactional_fixtures = true` work.
From: https://github.com/freelancing-god/after_commit
2010 Apr 22
7
Making ActiveSupport::Cache consistent
Lighthouse ticket: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4452
I have recently been working on some gems that utilize
ActiveSupport::Cache and ran into some issues with the different
implementations handling the same functionality differently. One of
the issues was that I couldn''t rely on expiring entries with
the :expires_in option. MemCacheStore takes this
2010 Jun 09
1
[patch] fix bytesize in exception template; multibyte titleize
Hi all,
I wanted to draw some attention to a couple of very small multibyte-related
patches I believe should be included before Rails 3.0 RC1:
* Use String#bytesize rather than String#length in exception templates:
This is a simple case where string length is checked, but bytes is needed,
so it breaks with string with multibyte chars.
2010 Apr 18
1
Add shorthand support for routes like /projects/status(.:format)
Hi, when trying to migrate Signal to Rails 3 I tried to use the shorthand
route for:
match ''/projects/status(.:format)''
but it thrown an error because the controller was not specified. This
happend because actually the shorthand routes only work with routes without
optional parameters. The modification to support routes ending with a
optional parameters is very simple, as can
2010 Apr 05
2
Harmonizing JSON/XML serialization
The way Rails handles root nodes in JSON and XML serialization is
inconsistent. This has been discussed before:
https://rails.lighthouseapp.com/projects/8994/tickets/2584-232-activeresource-json-doesnt-send-parameters-with-root-node
This seems mostly taken care of with
ActiveModel::Base.include_root_in_json, especially if/when it ends up
in ActiveResource. However, there is also the issue of how
2012 Aug 01
0
Testable after_commit hooks for rails 4?
https://groups.google.com/d/topic/rubyonrails-core/i2k7dn-jRVg/discussion
What do you think about bringing the possibility to test after_commit hooks
while also using transactional fixtures to rails 4? Would the approach used
here https://gist.github.com/1169763 be acceptable?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
2011 Mar 18
1
ActiveResource: prefix attributes that are mass assigned are not readable - Stale ?
Hi,
I noticed that 2 days ago that this ticket was marked "stale".
https://rails.lighthouseapp.com/projects/8994/tickets/6171
But the issue is still here (I checked just now), and it reminded me I
had a patch for it I forgot to submit, so I attached the patch file to
the ticket.
Since I''m still new on this, can someone please point me the right
procedure ? Should I have
2010 Mar 20
1
[PATCH] AR migration generator includes model's modules in table name. [#4230]
Hello! Could someone review the patch attached to [1] and provide
feedback?
Briefly, it targets rails 3, and fixes "rails g model admin/post".
The generated migration creates a "admin_posts" table while the model
expects a table simply named "posts". With the patch, the migration
creates "posts".
Thank you!
--phil--
[1]
2010 Jun 18
1
[PATCH] option_groups_from_collection_for_select should produce an HTML-safe string
Can somebody please review my ticket:
https://rails.lighthouseapp.com/projects/8994/tickets/4879
It''s a trivial bugfix ("option_groups_from_collection_for_select
should produce an HTML-safe string") before RC, I think.
Cheers,
Wincent
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group,
2008 May 05
1
eager loading has_one fix
I believe I have fixed the issue Trever noted with has_one (http://rails.lighthouseapp.com/projects/8994/tickets/64-eager-loading-inconsistency
) if people would like o have a look.
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Nov 01
1
[patch] Allowing to_xml to rename keys in lower camel case format
Hi all,
I''ve created and submitted a patch to resolve an issue I had while
attempting to meet the OpenSocial API specifications, which dictates that
the xml output have tags formatted as lower camelcase (as opposed to upper
camelcase, which is currently the only option). With this patch, simply
passing :camelize => true still begets the current behavior, but you can now
enable lower
2010 Sep 23
1
Patch to fix docs for auto_link
Hi I''ve contributed a patch which fixes an incorrect example in the
documentation for auto_link in ActionView::Helpers::TextHelper.
The example uses truncate in the old style of tuncate(text, length)
which no longer works, so I''ve patched it to use the new
tuncate(text, :length => n) style.
2008 Sep 02
1
Deploying Rails patches (diff)
I am having a problem with a belongs_to and a has_one :through relation
which I found is a known bug in Ruby on Rails:
http://rails.lighthouseapp.com/projects/8994/tickets/323-has_many-through-belongs_to_association-bug
This ticket has 6 different attachments. Do I need all of them, or just
the latest one?
I can''t seem to find anywhere how one is supposed to deploy these
patches.
2010 Sep 23
1
[patch] Properly memoize protected methods
This patch fixes an issue with protected methods becoming public if
they are memoized.
Looking for +1''s and/or a commit by core...
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5695
Thanks.
--
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
2010 May 14
1
select method on ActiveRecord::Relation brakes enumeration
class Brake
scope :good, where(:quality => ''good'')
end
Brake.all.select &:nil? #=> works fine
Brake.good.select &:nil? #=> FAILS
Last statement fails because Brake.good.select is returning
ActiveRecord::Relation and not an array.
I have posted a detailed discussion on ticket #4589 .
2010 Oct 25
1
A few fixes to eager loading issues
Hey all,
I''d really appreciate some eyes on https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5845-activerecord-3-eager-loading-fail#ticket-5845-19. There''s a small issue in Rails 3 eager loading, and this ticket has an accompanying patch.
Sssociations that show up twice in a Relation chain like:
Article.includes(:comments).includes(:comments =>
2010 Oct 11
2
my first patch ... what now? simple 1 word change
Hi everyone,
I just created my first rails patch. It is a simple textile doc
error requiring only a single word to be changed.
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5779
I uploaded a .diff file.
Not sure what to do now but lighthouse guide says I should ask on here
for someone to take a look.
Thank you for your time,
fooledbyprimes
Peoria, Illinois, USA
--
2011 Feb 28
3
Feature: ActiveResource - Adding associations through reflections
Hello everyone,
I''m new in contributing and i saw in the contributing-guides, that i
have to write an email at this list.
I hope, that''s the right place for this. If it''s not, i''M really
sorry.. ;)
Could someone please give me feedback about this lighthouse-ticket?