Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button - When the user submit more than or equal to 100 times the submit button will turn gold - Add golden-btn tag in applications.css.scss
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20081204122651_add_activated_to_users.rb | 25 lines | 423 B | text/x-ruby | RubyLexer |
class AddActivatedToUsers < ActiveRecord::Migration
def self.up
add_column :users, :activated, :boolean, :default => 0
User.reset_column_information
User.all.each do |user|
# disable validation
class <<user
def valid?
return true
end
end
user.activated = true
user.save
end
end
def self.down
remove_column :users, :activated
end
end