Module: Hippo::Concerns::ExportedLimitEvaluator

Defined in:
lib/hippo/concerns/exported_limit_evaluator.rb

Instance Method Summary collapse

Instance Method Details

#evaluate_export_limit(user, type, name, limit) ⇒ Object


5
6
7
8
9
10
11
12
13
# File 'lib/hippo/concerns/exported_limit_evaluator.rb', line 5

def evaluate_export_limit( user, type, name, limit )
    if limit.nil?
        true
    elsif limit.is_a?(Symbol)
        self.send( limit, user, type, name )
    else
        limit.call( user, type, name )
    end
end