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:
parent
f00d9c5eff
commit
493ddbd99e
2 changed files with 2 additions and 2 deletions
|
@ -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 -%>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue