Fix MassAssignmentSecurity::Error in integration test.
This commit is contained in:
parent
e9406d2693
commit
172134f971
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,8 @@ module Refinery
|
|||
|
||||
validates :title, :presence => true, :uniqueness => true
|
||||
|
||||
attr_accessible :title
|
||||
|
||||
def post_count
|
||||
posts.select(&:live?).count
|
||||
end
|
||||
|
@ -20,4 +22,4 @@ module Refinery
|
|||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue