Remove enumerated_attribute gem (not working with latest rails?)
This commit is contained in:
parent
8d330e74ef
commit
73e6db58ce
4 changed files with 1 additions and 8 deletions
2
Gemfile
2
Gemfile
|
@ -14,8 +14,6 @@ gem 'devise-kerberos-authenticatable',
|
||||||
:git => 'git://github.com/atomaka/devise-kerberos-authenticatable.git'
|
:git => 'git://github.com/atomaka/devise-kerberos-authenticatable.git'
|
||||||
gem 'cancan'
|
gem 'cancan'
|
||||||
|
|
||||||
gem 'enumerated_attribute'
|
|
||||||
|
|
||||||
|
|
||||||
# Gems used only for assets and not required
|
# Gems used only for assets and not required
|
||||||
# in production environments by default.
|
# in production environments by default.
|
||||||
|
|
|
@ -73,8 +73,6 @@ GEM
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
railties (~> 3.1)
|
railties (~> 3.1)
|
||||||
warden (~> 1.2.1)
|
warden (~> 1.2.1)
|
||||||
enumerated_attribute (0.2.16)
|
|
||||||
meta_programming (>= 0.2.1)
|
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
eventmachine (1.0.3)
|
eventmachine (1.0.3)
|
||||||
execjs (1.4.0)
|
execjs (1.4.0)
|
||||||
|
@ -99,7 +97,6 @@ GEM
|
||||||
mail (2.5.4)
|
mail (2.5.4)
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
meta_programming (0.2.2)
|
|
||||||
meta_request (0.2.6)
|
meta_request (0.2.6)
|
||||||
callsite
|
callsite
|
||||||
rack-contrib
|
rack-contrib
|
||||||
|
@ -195,7 +192,6 @@ DEPENDENCIES
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 3.2.1)
|
||||||
devise
|
devise
|
||||||
devise-kerberos-authenticatable!
|
devise-kerberos-authenticatable!
|
||||||
enumerated_attribute
|
|
||||||
jquery-rails
|
jquery-rails
|
||||||
less-rails
|
less-rails
|
||||||
meta_request
|
meta_request
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
class Alert < ActiveRecord::Base
|
class Alert < ActiveRecord::Base
|
||||||
enum_attr :semester, %w(US13 FS13 SS14)
|
|
||||||
attr_accessible :course, :department, :semester, :sections
|
attr_accessible :course, :department, :semester, :sections
|
||||||
attr_protected :user_id
|
attr_protected :user_id
|
||||||
attr_protected :alerted
|
attr_protected :alerted
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<%= f.label :semester, :class => 'control-label' %>
|
<%= f.label :semester, :class => 'control-label' %>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= f.enum_select :semester %>
|
<%= f.text_field :semester, :class => 'text_field' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue