Pretend not pretending
Reported by J. Pablo Fernandez | March 30th, 2008 @ 07:41 PM | in 0.9.4
Hello,
Running merb-gen authenticated -p User did actually modified two files, as follows:
$ git status
- On branch master
nothing to commit (working directory clean)
$ merb-gen authenticated -p User
dependency merbful_authentication_tests
create spec/controllers/
create spec/controllers/
exists spec
create spec/controllers
create spec/models
create spec/authenticated_system_spec_helper.rb
create spec/user_spec_helper.rb
create spec/controllers/sessions_spec.rb
create spec/controllers/users_spec.rb
create spec/models/user_spec.rb
dependency merbful_authentication_model
exists app
create app/models
create lib
create lib/authenticated_system
create app/models/user.rb
create lib/authenticated_system/authenticated_system_orm_map.rb
exists app/controllers/
exists app/controllers/
exists app/helpers/
exists app/controllers/
exists app/helpers/
exists app
exists app/views
create app/views/sessions
create app/views/Users
exists app/controllers
create lib
create lib/authenticated_system
create app/views/sessions/new.html.erb
create app/views/Users/new.html.erb
create app/controllers/sessions.rb
create app/controllers/Users.rb
create lib/authenticated_system/authenticated_routes.rb
create lib/authenticated_system/authenticated_system_model.rb
create lib/authenticated_system/authenticated_dependencies.rb
create lib/authenticated_system/authenticated_system_controller.rb
$ git status
- On branch master
- Changed but not updated:
- (use "git add ..." to update what will be committed)
#
- modified: config/init.rb
- modified: config/router.rb
#
no changes added to commit (use "git add" and/or "git commit -a")
$ git diff
diff --git a/config/init.rb b/config/init.rb
index 4108fde..32cb865 100644
--- a/config/init.rb
+++ b/config/init.rb
@@ -56,3 +56,8 @@ Merb::BootLoader.after_app_loads do
- dependency "magic_admin" # this gem uses the app's model classes
end
+
+begin
- require File.join(File.dirname(__FILE__), '..', 'lib', 'authenticated_system/authenticated_dependencies')
+rescue LoadError
+end
diff --git a/config/router.rb b/config/router.rb
index c60d454..0d811fd 100644
--- a/config/router.rb
+++ b/config/router.rb
@@ -32,4 +32,6 @@ Merb::Router.prepare do |r|
- Change this for your home page to be available at /
- r.match('/').to(:controller => 'whatever', :action =>'index')
-end
\ No newline at end of file
+end
+
+AuthenticatedSystem.add_routes rescue nil
Comments and changes to this ticket
-
Michael Klishin (antares) May 2nd, 2008 @ 10:05 AM
We try to clean up obsolete tickets. Can you still reproduce it? A bit cleaner description and patch would be great as well. Thanks.
-
Michael Klishin (antares) May 11th, 2008 @ 03:01 PM
- → Milestone changed from to 0.9.4
One more time.
We try to clean up obsolete tickets. Can you still reproduce it? A bit cleaner description and patch would be great as well. Thanks.
-
J. Pablo Fernandez May 12th, 2008 @ 11:27 AM
I'm sorry, I can't work in this at the moment, as I don't have the environment where this happened, if you can't reproduce it, feel free to close it. If I find it again, I'll re-open it or submit a new one.
Thank you.
-
Michael Klishin (antares) May 12th, 2008 @ 03:45 PM
- → State changed from new to open
I could reproduce it with Merb component generators.
-
jack dempsey (jackdempsey) June 2nd, 2008 @ 08:38 AM
Michael,
What did you do to reproduce? I've run some tests and couldn't replicate with my examples. If you could pastie in a couple lines or just let me know for which generator its busted I'll take a look at it.
-
Michael Klishin (antares) June 2nd, 2008 @ 08:46 AM
I do not remember exactly, I think I run model generator with pretend option using DataMapper and actual generation took place.
-
Michael Klishin (antares) August 2nd, 2008 @ 06:46 PM
- → Tag changed from to merb-gen
- → State changed from open to resolved
Should be resolved in new merb-gen in HEAD.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
