Akira Matsuda
6a728491b6
[Railties] require_relative => require
...
This basically reverts 618268b4b9
2017-10-21 22:48:26 +09:00
Pat Allan
acea68de02
Adding frozen_string_literal pragma to Railties.
2017-08-14 19:08:09 +02:00
Akira Matsuda
618268b4b9
[Railties] require => require_relative
2017-07-01 18:35:43 +09:00
Akira Matsuda
49d61aed4c
A private method can't be called with self.
...
So calling `filename_with_extensions` omitting the second argument like this
8dbc1fbf85/lib/generators/slim/scaffold/scaffold_generator.rb (L10)
causes NoMethodError.
fixes #28275
2017-03-04 12:05:18 +09:00
Akira Matsuda
d1daf4c313
Privatize unneededly protected methods in Railties
2016-12-25 02:11:40 +09:00
Xavier Noria
80e66cc4d9
normalizes indentation and whitespace across the project
2016-08-06 20:16:27 +02:00
Xavier Noria
69ab3eb57e
applies new string literal convention in railties/lib
...
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00
Carlos Antonio da Silva
ab1bd7ccf1
Always return an array from formats so there is no need to wrap it when calling
2014-03-04 11:26:09 -03:00
Allen Fair
3624ff720c
Fix for external generators extend Erb::Generators
...
HAML and probably other generators extend this class and invoke
filename_with_extensions with the old signature (without format).
This makes the second argument optional and defaults it to the #format
method which could be overridden as well.
Closes #14132 .
2014-03-04 11:25:52 -03:00
Kassio Borges
02c814c992
html
and text
templates for mailers by default
2013-12-20 18:34:57 -02:00
Vijay Dev
e40f515a75
Fixing build failures
...
Build failed with an error "invalid multibyte char (US-ASCII)" in these
files. Apparently, some UTF-8 char disguised as whitespace causes this.
Thanks @rafaelfranca
2012-10-11 02:05:25 +05:30
Francesco Rodriguez
0ee5433ae6
nodoc Erb::Generators [ci skip]
2012-10-07 13:49:46 -05:00
José Valim
b61f6f5980
Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive.
2010-03-23 13:40:41 +01:00
José Valim
9fffdc5cdb
Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path.
2010-01-18 16:21:11 +01:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00