public
Fork of drnic/ruby-on-rails-tmbundle
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://macromates.com
Clone URL: git://github.com/badcarl/ruby-on-rails-tmbundle.git
Search Repo:
go_to_alternate_file model will create an ActiveRecord stub instead of a 
blank file


git-svn-id: 
http://macromates.com/svn/Bundles/trunk/Bundles/Ruby%20on%20Rails.tmbundle
@9090 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
drnic (author)
Tue Mar 11 08:52:12 -0700 2008
commit  2acf109e9d56eb500f031cbe95f80809b12077a8
tree    5d264a93119b2eec57c7fe123f52345dc1220419
parent  2c5dfdceb9d0235d2251fd9fc979bdc7005b3d58
...
168
169
170
 
 
171
172
173
...
168
169
170
171
172
173
174
175
0
@@ -168,6 +168,8 @@
0
     end
0
 
0
     generated_code, openatline, openatcol = case choice
0
+ when :model
0
+ ["class #{Inflector.singularize rails_path.controller_name.camelize} < ActiveRecord::Base\n\nend", 1, 0]
0
     when :controller
0
       ["class #{rails_path.controller_name.camelize}Controller < ApplicationController\n\nend", 1, 0]
0
     when :helper

Comments

    No one has commented yet.