Displaying 12 results from an estimated 12 matches for "rafaelfranca".
2012 Nov 10
6
Suggestion: `before_save on: :create` should either work or raise an exception
There''s a small inconsistency in ActiveRecord''s callback syntax that has
tripped me up before. It wouldn''t be a big deal, but it can lead to a
silent failure. I''d like to suggest that it either be made consistent or be
made to fail loudly.
The issue is that to do something before validating, but only when
creating, you use `before_validation on: :create`,
2012 Oct 18
3
#asset_url helper method
Just putting this out there before I make a pull request.
Is there any interest in an asset_url method as a view helper?
It would work by using the config.action_controller.asset_host if it exists
and prepending this to the results of asset_path.
I have found this necessary when writing html emails and needing a full url
path for assets. Since my CDN in the asset_host mirrors my assets in my
2012 Nov 15
2
Suggestion: use `select` values if `pluck` called with no args
I suggest that if you don''t pass any args to ActiveRecord#pluck, it would
use the select values. This follows along well with the way other
AR::Calculations work. As an extra benefit we would be able to pluck
virtual columns.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit
2014 Mar 11
0
Rails 4.0.4.rc1 has been released!
Hi everyone,
I am happy to announce that Rails 4.0.4.rc1 has been released. This is a
bug fix release and
includes more than 290 commits.
If no regressions are found we will release 4.0.4 final this Friday, on
March 14, 2014.
If you find one, please open an Issue on GitHub and mention me
(@rafaelfranca) on it,
so that we can fix it before the final release.
## CHANGES since 4.0.3
To view the changes for each gem, please read the changelogs on GitHub:
* [Action Mailer CHANGELOG](
https://github.com/rails/rails/blob/v4.0.4.rc1/actionmailer/CHANGELOG.md)
* [Action Pack CHANGELOG](
https://github....
2013 Oct 17
0
Rails 4.0.1.rc1 has been released!
...e idea of
having a smoother upgrade path
to Rails 4.
Also, this release adds some performance improvements to make Rails 4
even faster.
If no regressions are found we will release 4.0.1 final final this
Tuesday, on October 22, 2013.
If you find one, please open an Issue on GitHub and mention me
(@rafaelfranca) on it,
so that we can fix it before the final release.
## CHANGES since 4.0.0
To view the changes for each gem, please read the changelogs on GitHub:
* [Action Mailer
CHANGELOG](https://github.com/rails/rails/blob/v4.0.1.rc1/actionmailer/CHANGELOG.md)
* [Action Pack CHANGELOG](https://github.co...
2013 Nov 14
6
validates :boolean_field, presence: true misconceptions
Last night a friend of mine started ranting about validates_presence_of
:boolean_field returning not valid when the boolean field is false.
I checked the rails issues and this seems to be a pretty common concern
about the naming of ''presence'' .
Instead of changing the behaviour of the presence validator, I was
wondering if maybe the answer to avoid such misconceptions could be
2012 Dec 14
1
Re: Digest for rubyonrails-core@googlegroups.com - 4 Messages in 3 Topics
...any objections.
> •
> • "Rafael Mendonça França" <rafaelmfranca@gmail.com> Dec 13 06:28PM -0300
> •
> • Action cache was extracted from Rails and it is not part of the framework
> • anymore.
> •
> • Rafael Mendonça França
> • http://twitter.com/rafaelfranca
> • https://github.com/rafaelfranca
> •
> •
> •
> •
> Should render collection: @items have a cache option so that read_multi can be utilized?
> • nate <nate@inventric.com> Dec 13 08:21AM -0800
> •
> • I released a gem yesterday
> •
>...
2013 Oct 30
0
Rails 4.0.1.rc4 has been released!
...thub.com/rails/rails/compare/v4.0.1.rc3...v4.0.1.rc4
And the changes from 4.0.0 to 4.0.1:
https://github.com/rails/rails/compare/v4.0.0...v4.0.1.rc4
If we don''t hit any more stumbling blocks, I''ll release 4.0.1 on
Friday, November 1st.
Rafael Mendonça França
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com.
To post to this gro...
2013 Apr 28
2
[ActiveSupport] Add a "remaining_to" method to date class
Just that:
class Date
> def remaining_to(date)
> if date.acts_like? :date
> date - self
> end
> end
>
alias :days_to
end
and then be able to do this:
Date.today.remaining_to(Date.parse ''2014-04-02'').days.seconds
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To
2013 Jul 22
1
Dependency upon raised error/exception messages.
Hey everyone,
first of all, thank you for the tremendous work and effort on making Rails
more awesome every day.
I''ve brought up this "issue" on Github last Friday. [1] Steve Klabnik told
me to bring the discussion here, as it''s more appropriate.
The thing is, there is some amount of logic scattered around Rails (and its
tests) that depends upon error/exception
2012 Jul 09
10
attr_accessible on some properties + attr_protected on others makes class 'open-by-default'
(I posted this as a bug in GitHub
(https://github.com/rails/rails/issues/7018), but then someone there told
me I should post it here, so here it is.)
If you set attr_accessible on some properties in an ActiveRecord-descended
class, and then attr_protected on others - the class becomes ''default-open''
- if any properties are missed or added later, they will be accessible by
2013 Jul 10
4
Decoupling of ActionPack
Hello!
Are the plans of splitting ActionPack for several gems (AbstractController,
ActionView, etc)? Like https://github.com/rails/rails/pull/7356 ...
I.e. I know gems that are needed AbstractController only... And they are
forced to require the whole ActionPack...
Thanx.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To