def create_many_accessors(context, options)
      define_method(context.to_s.pluralize) do
        media.with_context(context.to_sym).uniq
      end

      module_eval <<-"end;", __FILE__, __LINE__
        def #{context}=(values)
          return if values.blank?
          Array(values).each do |value|
            next if value.nil?
            medium = Medium.new_from_value(self, value, "#{context}", "#{options[:encode]}", "#{options[:only]}")
            media << medium if medium
          end
        end
      end;
    end
def create_many_accessors(context, options)
      define_method(context.to_s.pluralize) do
        media.with_context(context.to_sym).uniq
      end

      module_eval <<-"end;", __FILE__, __LINE__
        def #{context}=(values)
          return if values.blank?
          Array(values).each do |value|
            next if value.nil?
            medium = Medium.new_from_value(self, value, "#{context}", "#{options[:encode]}", "#{options[:only]}")
            media << medium if medium
          end
        end
      end;
    end
create_many_accessors
 Create needed accessors on master object for multiple relation

 @param [String] context
 @param [Hash]   options