mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Change AddGenerator - rails g paloma:add controller action
This commit is contained in:
parent
ff5af39d3d
commit
9298475b02
4 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,10 @@
|
|||
Changelog
|
||||
=
|
||||
|
||||
Version 1.0.0
|
||||
-
|
||||
* `AddGenerator` changed from `rails g paloma:add controller/action` to `rails g paloma:add controller action`
|
||||
|
||||
Version 0.0.8
|
||||
-
|
||||
* Bug Fix: _callback.js cannot find _local.js
|
||||
|
|
|
@ -26,7 +26,7 @@ module Paloma
|
|||
source_root Paloma.templates
|
||||
|
||||
def create_callback_file
|
||||
arg = file_path.split('/')
|
||||
arg = file_path.split(' ')
|
||||
@controller_name = arg[0]
|
||||
action_name = arg[1]
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'paloma'
|
||||
s.version = '0.0.8'
|
||||
s.version = '1.0.0'
|
||||
s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
|
||||
s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
|
||||
s.authors = ["Karl Paragua", "Bia Esmero"]
|
||||
|
|
|
@ -63,7 +63,7 @@ end
|
|||
feature Paloma::AddGenerator, 'creating action with existing controller folder' do
|
||||
include GeneratorSpec::TestCase
|
||||
destination TEMP
|
||||
arguments ['existing_controller_folder/new_action']
|
||||
arguments ['existing_controller_folder new_action']
|
||||
|
||||
before do
|
||||
prepare_destination
|
||||
|
@ -96,7 +96,7 @@ end
|
|||
feature Paloma::AddGenerator, 'creating both controller folder and action file' do
|
||||
include GeneratorSpec::TestCase
|
||||
destination TEMP
|
||||
arguments ['new_controller_folder/new_action']
|
||||
arguments ['new_controller_folder new_action']
|
||||
|
||||
before do
|
||||
prepare_destination
|
||||
|
|
Loading…
Reference in a new issue