Skip to content

Commit 5816abe

Browse files
author
Samuel O. Obukwelu
committed
Removed more attr_accessible from models
1 parent 071105a commit 5816abe

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/songkick/oauth2/model/client.rb

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class Client < ActiveRecord::Base
1515
validates_presence_of :name, :redirect_uri
1616
validate :check_format_of_redirect_uri
1717

18-
attr_accessible :name, :redirect_uri
19-
2018
before_create :generate_credentials
2119

2220
def self.create_client_id

spec/songkick/oauth2/model/client_spec.rb

-10
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@
3232
@client.should_not be_valid
3333
end
3434

35-
it "cannot mass-assign client_id" do
36-
@client.update_attributes(:client_id => 'foo')
37-
@client.client_id.should_not == 'foo'
38-
end
39-
40-
it "cannot mass-assign client_secret" do
41-
@client.update_attributes(:client_secret => 'foo')
42-
@client.client_secret.should_not == 'foo'
43-
end
44-
4535
it "has client_id and client_secret filled in" do
4636
@client.client_id.should_not be_nil
4737
@client.client_secret.should_not be_nil

0 commit comments

Comments
 (0)