diff --git a/lib/nice_partials/partial.rb b/lib/nice_partials/partial.rb index 0f7a38c..27f0225 100644 --- a/lib/nice_partials/partial.rb +++ b/lib/nice_partials/partial.rb @@ -1,9 +1,11 @@ module NicePartials class Partial + attr_reader :options delegate_missing_to :@view_context - def initialize(view_context) + def initialize(view_context, options = {}) @view_context = view_context + @options = options @key = SecureRandom.uuid end