mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
63ac6255ba
- Now we will detect what javascript engine user is using and based on that we will generate either `.js` or `.coffee` version of the channel file. - This also needs a change in coffee-rails to override the `js_template` method. Related PR https://github.com/rails/coffee-rails/pull/72. - Currently coffee-rails gem sets `config.app_generators.javascript_engine` to `:coffee` and using this information we override the `js_template` to set the extension as `.coffee` in coffee-rails gem. - Using this approach, we can keep the `channel.js` and `channel.coffee` files in the Rails repository itself. - Additionally the `js_template` method can act as public interface for coffee-rails gem to hook into and change the extension to `.coffee` without maintaining the actual asset files. [Prathamesh Sonpatki, Matthew Draper] |
||
---|---|---|
.. | ||
actions_test.rb | ||
api_app_generator_test.rb | ||
app_generator_test.rb | ||
argv_scrubber_test.rb | ||
assets_generator_test.rb | ||
channel_generator_test.rb | ||
controller_generator_test.rb | ||
create_migration_test.rb | ||
generated_attribute_test.rb | ||
generator_generator_test.rb | ||
generator_test.rb | ||
generators_test_helper.rb | ||
helper_generator_test.rb | ||
integration_test_generator_test.rb | ||
job_generator_test.rb | ||
mailer_generator_test.rb | ||
migration_generator_test.rb | ||
model_generator_test.rb | ||
named_base_test.rb | ||
namespaced_generators_test.rb | ||
orm_test.rb | ||
plugin_generator_test.rb | ||
plugin_test_helper.rb | ||
plugin_test_runner_test.rb | ||
resource_generator_test.rb | ||
scaffold_controller_generator_test.rb | ||
scaffold_generator_test.rb | ||
shared_generator_tests.rb | ||
task_generator_test.rb | ||
test_runner_in_engine_test.rb |