Sha256: 0cdedbae40c8d2e7a86cf7c72166ebb35ea6dda4e6a76a9f62535667ec1c3dd1

Contents?: true

Size: 392 Bytes

Versions: 13

Compression:

Stored size: 392 Bytes

Contents

module ConfigManager
	class Admin < ActiveRecord::Base
		devise 	:database_authenticatable, 
						:rememberable,
						:registerable,
						:trackable,
						:validatable

		def self.needs_attr_accessible?
			Rails::VERSION::MAJOR == 3
		end

		attr_accessible :email, 
										:password,
										:password_confirmation,
										:remember_created_at if needs_attr_accessible?
	end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
config_manager-1.0.4 app/models/config_manager/admin.rb
config_manager-1.0.3 app/models/config_manager/admin.rb
config_manager-1.0.2 app/models/config_manager/admin.rb
config_manager-1.0.0 app/models/config_manager/admin.rb
config_manager-0.0.10 app/models/config_manager/admin.rb
config_manager-0.0.9 app/models/config_manager/admin.rb
config_manager-0.0.8 app/models/config_manager/admin.rb
config_manager-0.0.7 app/models/config_manager/admin.rb
config_manager-0.0.6 app/models/config_manager/admin.rb
config_manager-0.0.5 app/models/config_manager/admin.rb
config_manager-0.0.4 app/models/config_manager/admin.rb
config_manager-0.0.2 app/models/config_manager/admin.rb
config_manager-0.0.1 app/models/config_manager/admin.rb