1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

change method should be instance method. closes #1345

This commit is contained in:
Vasiliy Ermolovich 2011-11-06 16:15:17 +03:00
parent f00d9c5eff
commit 493ddbd99e
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
<% if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1 -%>
def self.change
def change
<% else -%>
def self.up
<% end -%>

View file

@ -20,7 +20,7 @@ if DEVISE_ORM == :active_record
with_rails_version :MAJOR => 3, :MINOR => 1 do
run_generator %w(monster)
assert_file "app/models/monster.rb", /devise/, /attr_accessible (:[a-z_]+(, )?)+/
assert_migration "db/migrate/devise_create_monsters.rb", /def self\.change/
assert_migration "db/migrate/devise_create_monsters.rb", /def change/
end
end