i want support generate the namespace(Inheritance). #47

Closed
Chiether opened this Issue Jun 21, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@Chiether

[example]
rails g scaffold admin/team

[generate]
invoke active_record
create db/migrate/20110621120306_create_admin_teams.rb
create app/models/admin/team.rb
identical app/models/admin.rb
invoke rspec
create spec/models/admin/team_spec.rb
invoke fabrication
create spec/fabricators/admin_team_fabricator.rb
route namespace :admin do resources :teams end
invoke inherited_resources_controller
create app/controllers/admin/teams_controller.rb
invoke haml
create app/views/admin/teams
create app/views/admin/teams/index.html.haml
create app/views/admin/teams/edit.html.haml
create app/views/admin/teams/show.html.haml
create app/views/admin/teams/new.html.haml
create app/views/admin/teams/_form.html.haml
invoke rspec
create spec/controllers/admin/teams_controller_spec.rb
create spec/views/admin/teams/edit.html.haml_spec.rb
create spec/views/admin/teams/index.html.haml_spec.rb
create spec/views/admin/teams/new.html.haml_spec.rb
create spec/views/admin/teams/show.html.haml_spec.rb
invoke helper
create spec/helpers/admin/teams_helper_spec.rb
create spec/routing/admin/teams_routing_spec.rb
invoke rspec
create spec/requests/admin/admin_teams_spec.rb
invoke helper
create app/helpers/admin/teams_helper.rb
invoke rspec
invoke stylesheets
identical public/stylesheets/scaffold.css

[expect]
Fabricator(:team, :from=>:admin) do end
or
Fabricator(:"Admin::Team") do end

[disappointment]
Fabricator(:team) do end


I want save the trouble of modify ./spec/fabricators/<singular_table_name>_fabricator.rb

@Chiether

This comment has been minimized.

Show comment Hide comment
@Chiether

Chiether Jun 21, 2011

its ruby 1.9.2p180 + gem 1.6.2 + Rails 3.0.9.

its ruby 1.9.2p180 + gem 1.6.2 + Rails 3.0.9.

@Chiether Chiether closed this Jun 21, 2011

@Chiether Chiether reopened this Jun 21, 2011

@paulelliott paulelliott closed this Jun 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment