Skip to content

Commit

Permalink
Remove unnecessary class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Jul 23, 2011
1 parent 605332c commit 08c8937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/draper/base.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Draper
class Base
require 'active_support/core_ext/class/attribute'
class_attribute :denied, :allowed, :source_class, :model_class
class_attribute :denied, :allowed, :model_class
attr_accessor :model

DEFAULT_DENIED = Object.new.methods
Expand All @@ -10,7 +10,7 @@ class Base

def initialize(input)
input.inspect
self.class.source_class = input.class
self.class.model_class = input.class if model_class.nil?
@model = input
build_methods
end
Expand Down

0 comments on commit 08c8937

Please sign in to comment.